1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 05:25:29 +03:00

Fix timeout error

This commit is contained in:
beeankha 2020-03-27 15:44:23 -04:00
parent 2e8f9185ab
commit 230949c43c

View File

@ -171,7 +171,7 @@ def main():
# Loop while the job is not yet completed
while not result['finished']:
# If we are past our time out fail with a message
if timeout and time.time() - start:
if timeout and timeout < time.time() - start:
module.json_output['msg'] = "Monitoring aborted due to timeout"
module.fail_json(**module.json_output)