From 23a22397bfdbcf9d8a4b9037fc5fb63ae8dcefc1 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 4 Sep 2015 10:11:25 -0400 Subject: [PATCH] remove closing connections after every task, this goes against conneciton caching and was not expected behaviuor nor inhertited from v1 --- lib/ansible/executor/task_executor.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index 1c6346d94ac..8c8990a97dc 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): '''