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:
parent
2e8f9185ab
commit
230949c43c
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user