summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2015-09-04 10:11:25 -0400
committerBrian Coca <brian.coca+git@gmail.com>2015-09-04 10:11:25 -0400
commit23a22397bfdbcf9d8a4b9037fc5fb63ae8dcefc1 (patch)
treedf3d7053bed9915fa563b1bb85cab70ac0e9d336
parenta6de4b86a88363a9239ba97f063e2f8e7a83afac (diff)
downloadansible-23a22397bfdbcf9d8a4b9037fc5fb63ae8dcefc1.tar.gz
remove closing connections after every task, this goes against conneciton caching and was not expected behaviuor nor inhertited from v1
-rw-r--r--lib/ansible/executor/task_executor.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py
index 1c6346d94a..8c8990a97d 100644
--- a/lib/ansible/executor/task_executor.py
+++ b/lib/ansible/executor/task_executor.py
@@ -128,13 +128,6 @@ class TaskExecutor:
return result
except AnsibleError as e:
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):
'''