1
0
mirror of https://github.com/newnius/YAO-agent.git synced 2025-06-06 05:21:55 +00:00
This commit is contained in:
Newnius 2020-05-05 11:34:19 +08:00
parent 2490277853
commit f4925f25a5

View File

@ -118,8 +118,8 @@ class MyHandler(BaseHTTPRequestHandler):
'hostname': container.attrs['Config']['Hostname'],
'state': container.attrs['State']
}
if container_id in pending_tasks:
status['status'] = 'ready'
#if container_id in pending_tasks:
# status['status'] = 'ready'
if status['command'] is not None:
status['command'] = ' '.join(container.attrs['Config']['Cmd'])
msg = {'code': 0, 'status': status}