issue #625: use exec() instead of subprocess in mitogen_ansible_playbook
This is just to make CTRL+C handling less confusing. Alternate would be ignoring SIGINT, but this is simpler.
This commit is contained in:
parent
0e489625ed
commit
8a870f1402
|
@ -3,4 +3,8 @@ import os
|
|||
import subprocess
|
||||
import sys
|
||||
os.environ['ANSIBLE_STRATEGY'] = 'mitogen_linear'
|
||||
subprocess.check_call(['./run_ansible_playbook.py'] + sys.argv[1:])
|
||||
os.execlp(
|
||||
'./run_ansible_playbook.py',
|
||||
'./run_ansible_playbook.py',
|
||||
*sys.argv[1:]
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue