mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 19:35:02 -02:30
Only warn if we can't release a tower token
This commit is contained in:
committed by
beeankha
parent
b34208d1b6
commit
d8be6490c2
@@ -331,7 +331,7 @@ class TowerModule(AnsibleModule):
|
|||||||
self.authenticated = False
|
self.authenticated = False
|
||||||
except(Exception) as e:
|
except(Exception) as e:
|
||||||
# Sanity check: Did the server send back some kind of internal error?
|
# 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):
|
def fail_json(self, **kwargs):
|
||||||
# Try to logout if we are authenticated
|
# Try to logout if we are authenticated
|
||||||
|
|||||||
Reference in New Issue
Block a user