updated to error if finished not in result

This commit is contained in:
sean-m-sullivan 2020-08-28 07:37:29 -05:00
parent d971375907
commit 7bd3f9d63c

View File

@ -595,7 +595,7 @@ class TowerAPIModule(TowerModule):
start = time.time()
result = self.get_endpoint(url)
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)
else:
while not result['json']['finished']: