mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03: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:
commit
4c40819791
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user