Clean up after ansible-connection if failure occurred in start() (#45929)
This commit is contained in:
parent
acac001742
commit
0d143ed7f6
1 changed files with 2 additions and 0 deletions
|
@ -271,6 +271,8 @@ def main():
|
|||
|
||||
if rc == 0:
|
||||
process.run()
|
||||
else:
|
||||
process.shutdown()
|
||||
|
||||
sys.exit(rc)
|
||||
|
||||
|
|
Loading…
Reference in a new issue