mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 14:41:23 -07:00
Fixed up async and polling logic.
This commit is contained in:
parent
5be1a612d3
commit
49a636d8a0
4 changed files with 89 additions and 24 deletions
|
@ -177,9 +177,9 @@ def path_dwim(basedir, given):
|
|||
|
||||
def async_poll_status(runner, clock, poll_interval, ok, host, jid, result):
|
||||
if ok and 'finished' in result:
|
||||
print "<job %s> finished on %s, %s" % (jid, host, result)
|
||||
print "<job %s> finished on %s" % (jid, host)
|
||||
elif not ok or 'failed' in result:
|
||||
print "<job %s> FAILED on %s, %s" % (jid, host, result)
|
||||
print "<job %s> FAILED on %s" % (jid, host)
|
||||
else:
|
||||
print "<job %s> polling on %s, %s remaining" % (jid, host, clock)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue