Clean up after ansible-connection if failure occurred in start() (#45929)

This commit is contained in:
Nathaniel Case 2018-09-20 15:04:30 -04:00 committed by GitHub
parent acac001742
commit 0d143ed7f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -271,6 +271,8 @@ def main():
if rc == 0: if rc == 0:
process.run() process.run()
else:
process.shutdown()
sys.exit(rc) sys.exit(rc)