Only warn if we can't release a tower token

This commit is contained in:
John Westcott IV 2020-01-17 11:07:39 -05:00 committed by beeankha
parent b34208d1b6
commit d8be6490c2

View File

@ -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