mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 11:11:07 -03:30
@@ -90,18 +90,11 @@ def main():
|
|||||||
exec(open(akit_args.akit_script).read(), globals())
|
exec(open(akit_args.akit_script).read(), globals())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exc = e
|
exc = e
|
||||||
raise exc
|
raise
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exc = e
|
exc = e
|
||||||
rc = 1
|
rc = 1
|
||||||
|
raise
|
||||||
if akit_args.non_interactive:
|
|
||||||
if exc:
|
|
||||||
traceback.print_exc(exc)
|
|
||||||
os._exit(rc)
|
|
||||||
|
|
||||||
if exc:
|
|
||||||
raise exc
|
|
||||||
|
|
||||||
|
|
||||||
def as_user(username, password=None):
|
def as_user(username, password=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user