Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
agentdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
5aea1fb2
authored
Jan 21, 2026
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_fix
parent
4ff6b3aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
agentcelery.py
+1
-1
protocol.py
+2
-2
No files found.
agentcelery.py
View file @
5aea1fb2
...
@@ -37,7 +37,7 @@ def send_command(vm, command, *args, **kwargs):
...
@@ -37,7 +37,7 @@ def send_command(vm, command, *args, **kwargs):
reactor
.
ended_tasks
[
vm
][
uuid
]
=
None
reactor
.
ended_tasks
[
vm
][
uuid
]
=
None
for
conn
in
reactor
.
connections
[
vm
]:
for
conn
in
reactor
.
connections
[
vm
]:
if
command
==
'append'
and
'vio-cloud'
not
in
conn
.
transport
.
addr
:
if
command
==
'append'
and
b
'vio-cloud'
not
in
conn
.
transport
.
addr
:
continue
continue
logger
.
info
(
'
%
s(
%
s,
%
s)'
,
command
,
vm
,
logger
.
info
(
'
%
s(
%
s,
%
s)'
,
command
,
vm
,
', '
.
join
(
map
(
lambda
x
:
str
(
x
)[:
100
],
kwargs
.
values
())))
', '
.
join
(
map
(
lambda
x
:
str
(
x
)[:
100
],
kwargs
.
values
())))
...
...
protocol.py
View file @
5aea1fb2
...
@@ -78,7 +78,7 @@ def inotify_handler(self, file, mask):
...
@@ -78,7 +78,7 @@ def inotify_handler(self, file, mask):
class
SerialLineReceiver
(
SerialLineReceiverBase
):
class
SerialLineReceiver
(
SerialLineReceiverBase
):
def
send_to_graphite
(
self
,
data
):
def
send_to_graphite
(
self
,
data
):
logger
.
info
(
"Send_TO_Graphite
"
)
logger
.
info
(
"Send_TO_Graphite
from
%
s"
,
self
.
factory
.
vm
)
client
=
GraphiteClientFactory
()
client
=
GraphiteClientFactory
()
client
.
protocol
.
data
=
data
client
.
protocol
.
data
=
data
client
.
protocol
.
name
=
self
.
factory
.
vm
client
.
protocol
.
name
=
self
.
factory
.
vm
...
@@ -105,7 +105,7 @@ class SerialLineReceiver(SerialLineReceiverBase):
...
@@ -105,7 +105,7 @@ class SerialLineReceiver(SerialLineReceiverBase):
self
.
send_response
(
response
=
'pong'
,
args
=
args
)
self
.
send_response
(
response
=
'pong'
,
args
=
args
)
def
handle_response
(
self
,
response
,
args
):
def
handle_response
(
self
,
response
,
args
):
logger
.
info
(
'handle_response:
%
s
%
s'
,
response
,
args
)
logger
.
info
(
'handle_response:
%
s
'
,
response
)
vm
=
self
.
factory
.
vm
vm
=
self
.
factory
.
vm
if
response
==
'status'
:
if
response
==
'status'
:
self
.
send_to_graphite
(
args
)
self
.
send_to_graphite
(
args
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment