From 7bd3f9d63c753d09dea131c94b58471b85e7aa83 Mon Sep 17 00:00:00 2001 From: sean-m-sullivan Date: Fri, 28 Aug 2020 07:37:29 -0500 Subject: [PATCH] updated to error if finished not in result --- awx_collection/plugins/module_utils/tower_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx_collection/plugins/module_utils/tower_api.py b/awx_collection/plugins/module_utils/tower_api.py index 28a4355574..e003b76591 100644 --- a/awx_collection/plugins/module_utils/tower_api.py +++ b/awx_collection/plugins/module_utils/tower_api.py @@ -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']: