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:
softwarefactory-project-zuul[bot] 2020-02-25 23:16:58 +00:00 committed by GitHub
commit 4c40819791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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