Commit 23a22397 by Brian Coca

remove closing connections after every task, this goes against conneciton…

remove closing connections after every task, this goes against conneciton caching and was not expected behaviuor nor inhertited from v1
parent a6de4b86
...@@ -128,13 +128,6 @@ class TaskExecutor: ...@@ -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):
''' '''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment