mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Modify /usr/bin/ansible and playbooks to use the new async API.
This commit is contained in:
committed by
Michael DeHaan
parent
ce9a8c9ffc
commit
029fe1273c
@@ -170,14 +170,6 @@ def path_dwim(basedir, given):
|
||||
else:
|
||||
return os.path.join(basedir, given)
|
||||
|
||||
def async_poll_status(jid, host, clock, result):
|
||||
if 'finished' in result:
|
||||
return "<job %s> finished on %s" % (jid, host)
|
||||
elif 'failed' in result:
|
||||
return "<job %s> FAILED on %s" % (jid, host)
|
||||
else:
|
||||
return "<job %s> polling on %s, %s remaining" % (jid, host, clock)
|
||||
|
||||
def json_loads(data):
|
||||
return json.loads(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user