mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-05 05:34:22 -07:00
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:
|
if rc == 0:
|
||||||
process.run()
|
process.run()
|
||||||
|
else:
|
||||||
|
process.shutdown()
|
||||||
|
|
||||||
sys.exit(rc)
|
sys.exit(rc)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue