mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Merge pull request #5965 from benthomasson/improve_awx_kit_error_message
Works around bad error message when authentication fails Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -90,18 +90,11 @@ def main():
|
||||
exec(open(akit_args.akit_script).read(), globals())
|
||||
except Exception as e:
|
||||
exc = e
|
||||
raise exc
|
||||
raise
|
||||
except Exception as e:
|
||||
exc = e
|
||||
rc = 1
|
||||
|
||||
if akit_args.non_interactive:
|
||||
if exc:
|
||||
traceback.print_exc(exc)
|
||||
os._exit(rc)
|
||||
|
||||
if exc:
|
||||
raise exc
|
||||
raise
|
||||
|
||||
|
||||
def as_user(username, password=None):
|
||||
|
||||
Reference in New Issue
Block a user