From 43e4f5009af58fd187267fb23a62f2bedc232af6 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 1 Apr 2018 11:24:57 +0100 Subject: [PATCH] issue #106: remove 2 needless Invocation attributes. --- ansible_mitogen/mixins.py | 2 -- ansible_mitogen/planner.py | 10 ++++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/ansible_mitogen/mixins.py b/ansible_mitogen/mixins.py index d003ce2e..2ed7139a 100644 --- a/ansible_mitogen/mixins.py +++ b/ansible_mitogen/mixins.py @@ -310,8 +310,6 @@ class ActionModuleMixin(ansible.plugins.action.ActionBase): connection=self._connection, module_name=mitogen.utils.cast(module_name), module_args=mitogen.utils.cast(module_args), - task_vars=task_vars, - tmp=tmp, env=mitogen.utils.cast(env), wrap_async=wrap_async, ) diff --git a/ansible_mitogen/planner.py b/ansible_mitogen/planner.py index 0fb99569..c0bb1d23 100644 --- a/ansible_mitogen/planner.py +++ b/ansible_mitogen/planner.py @@ -60,18 +60,16 @@ class Invocation(object): helpers.run_module() or helpers.run_module_async() in the target context. """ def __init__(self, action, connection, module_name, module_args, - task_vars, tmp, env, wrap_async): - #: Instance of the ActionBase subclass invoking the module. Required to - #: access some output postprocessing methods that don't belong in - #: ActionBase at all. + env, wrap_async): + #: ActionBase instance invoking the module. Required to access some + #: output postprocessing methods that don't belong in ActionBase at + #: all. self.action = action self.connection = connection self.module_name = module_name self.module_args = module_args self.module_path = None self.module_source = None - self.task_vars = task_vars - self.tmp = tmp self.env = env self.wrap_async = wrap_async