mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 22:05:07 -02:30
updated to error if finished not in result
This commit is contained in:
@@ -595,7 +595,7 @@ class TowerAPIModule(TowerModule):
|
|||||||
start = time.time()
|
start = time.time()
|
||||||
result = self.get_endpoint(url)
|
result = self.get_endpoint(url)
|
||||||
if result['json']['finished'] is None:
|
if result['json']['finished'] is None:
|
||||||
self.json_output['msg'] = 'Monitoring of {0} "{1}" aborted due to timeout'.format(object_type, object_name)
|
self.json_output['msg'] = 'Finished was not returned in the request of {0}'.format(url)
|
||||||
self.fail_json(**self.json_output)
|
self.fail_json(**self.json_output)
|
||||||
else:
|
else:
|
||||||
while not result['json']['finished']:
|
while not result['json']['finished']:
|
||||||
|
|||||||
Reference in New Issue
Block a user