mirror of
https://github.com/newnius/YAO-agent.git
synced 2025-12-13 05:26:43 +00:00
update
This commit is contained in:
4
agent.py
4
agent.py
@@ -118,8 +118,8 @@ class MyHandler(BaseHTTPRequestHandler):
|
|||||||
'hostname': container.attrs['Config']['Hostname'],
|
'hostname': container.attrs['Config']['Hostname'],
|
||||||
'state': container.attrs['State']
|
'state': container.attrs['State']
|
||||||
}
|
}
|
||||||
if container_id in pending_tasks:
|
#if container_id in pending_tasks:
|
||||||
status['status'] = 'ready'
|
# status['status'] = 'ready'
|
||||||
if status['command'] is not None:
|
if status['command'] is not None:
|
||||||
status['command'] = ' '.join(container.attrs['Config']['Cmd'])
|
status['command'] = ' '.join(container.attrs['Config']['Cmd'])
|
||||||
msg = {'code': 0, 'status': status}
|
msg = {'code': 0, 'status': status}
|
||||||
|
|||||||
Reference in New Issue
Block a user