From d8be6490c28a72293532c07bd3b01d37d58ed04e Mon Sep 17 00:00:00 2001 From: John Westcott IV Date: Fri, 17 Jan 2020 11:07:39 -0500 Subject: [PATCH] Only warn if we can't release a tower token --- 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 0f41f90f12..69f405346c 100644 --- a/awx_collection/plugins/module_utils/tower_api.py +++ b/awx_collection/plugins/module_utils/tower_api.py @@ -331,7 +331,7 @@ class TowerModule(AnsibleModule): self.authenticated = False except(Exception) as e: # Sanity check: Did the server send back some kind of internal error? - super().fail_json(msg='Failed to release token: {0}'.format(e)) + self.warn('Failed to release tower token {0}: {1}'.format(self.oauth_token_id, e)) def fail_json(self, **kwargs): # Try to logout if we are authenticated