mirror of
https://github.com/ansible/awx.git
synced 2026-03-14 23:47:28 -02:30
Fix timeout error
This commit is contained in:
@@ -171,7 +171,7 @@ def main():
|
|||||||
# Loop while the job is not yet completed
|
# Loop while the job is not yet completed
|
||||||
while not result['finished']:
|
while not result['finished']:
|
||||||
# If we are past our time out fail with a message
|
# 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.json_output['msg'] = "Monitoring aborted due to timeout"
|
||||||
module.fail_json(**module.json_output)
|
module.fail_json(**module.json_output)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user