mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 11:55:04 -02:30
fix duplicate exception sanity error
This commit is contained in:
@@ -94,7 +94,7 @@ def main():
|
||||
result = label.delete(name=name, organization=org['id'])
|
||||
except (exc.NotFound) as excinfo:
|
||||
module.fail_json(msg='Failed to update label, organization not found: {0}'.format(excinfo), changed=False)
|
||||
except (exc.ConnectionError, exc.BadRequest, exc.NotFound, exc.AuthError) as excinfo:
|
||||
except (exc.ConnectionError, exc.BadRequest, exc.AuthError) as excinfo:
|
||||
module.fail_json(msg='Failed to update label: {0}'.format(excinfo), changed=False)
|
||||
|
||||
json_output['changed'] = result['changed']
|
||||
|
||||
Reference in New Issue
Block a user