mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Only warn if we can't release a tower token
This commit is contained in:
parent
b34208d1b6
commit
d8be6490c2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user