mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
remove closing connections after every task, this goes against conneciton caching and was not expected behaviuor nor inhertited from v1
This commit is contained in:
parent
0eb0b56722
commit
eb0e7e198b
1 changed files with 0 additions and 7 deletions
|
@ -128,13 +128,6 @@ class TaskExecutor:
|
||||||
return result
|
return result
|
||||||
except AnsibleError as e:
|
except AnsibleError as e:
|
||||||
return dict(failed=True, msg=to_unicode(e, nonstring='simplerepr'))
|
return dict(failed=True, msg=to_unicode(e, nonstring='simplerepr'))
|
||||||
finally:
|
|
||||||
try:
|
|
||||||
self._connection.close()
|
|
||||||
except AttributeError:
|
|
||||||
pass
|
|
||||||
except Exception as e:
|
|
||||||
debug("error closing connection: %s" % to_unicode(e))
|
|
||||||
|
|
||||||
def _get_loop_items(self):
|
def _get_loop_items(self):
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue