mirror of
https://github.com/ansible/awx.git
synced 2026-09-05 03:18:29 -02:30
Modernize Python 2 code to get ready for Python 3
This commit is contained in:
@@ -41,10 +41,9 @@ class Command(BaseCommand):
|
||||
run.open_fifo_write(ssh_key_path, settings.AWX_ISOLATED_PRIVATE_KEY)
|
||||
args = run.wrap_args_with_ssh_agent(args, ssh_key_path, ssh_auth_sock)
|
||||
try:
|
||||
print ' '.join(args)
|
||||
print(' '.join(args))
|
||||
subprocess.check_call(args)
|
||||
except subprocess.CalledProcessError as e:
|
||||
sys.exit(e.returncode)
|
||||
finally:
|
||||
shutil.rmtree(path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user