1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 17:55:10 +03:00

Works around bad error message when authentication fails

related #5964
This commit is contained in:
Ben Thomasson 2020-02-17 15:57:31 -05:00
parent f57fff732e
commit 0c0cacb0d6

View File

@ -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):