mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
tower: Handle AuthError (#53377)
Handle AuthError raised when user provides incorrect password for Tower admin user. Fixes: #50535 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
e246e74843
commit
5b0eae75fa
23 changed files with 23 additions and 23 deletions
|
@ -91,7 +91,7 @@ def main():
|
|||
json_output['id'] = result['id']
|
||||
json_output['value'] = result['value']
|
||||
|
||||
except (exc.ConnectionError, exc.BadRequest) as excinfo:
|
||||
except (exc.ConnectionError, exc.BadRequest, exc.AuthError) as excinfo:
|
||||
module.fail_json(msg='Failed to modify the setting: {0}'.format(excinfo), changed=False)
|
||||
|
||||
json_output['changed'] = result['changed']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue