fix duplicate exception sanity error

This commit is contained in:
AlanCoding
2019-11-26 09:39:05 -05:00
parent ce8c0066d0
commit 695eab1fdd
4 changed files with 4 additions and 4 deletions

View File

@@ -404,7 +404,7 @@ def main():
result = credential.delete(**params)
except (exc.NotFound) as excinfo:
module.fail_json(msg='Failed to update credential, 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 credential: {0}'.format(excinfo), changed=False)
json_output['changed'] = result['changed']