issue #106: remove 2 needless Invocation attributes.

pull/193/head
David Wilson 7 years ago
parent 2470f486e1
commit 43e4f5009a

@ -310,8 +310,6 @@ class ActionModuleMixin(ansible.plugins.action.ActionBase):
connection=self._connection, connection=self._connection,
module_name=mitogen.utils.cast(module_name), module_name=mitogen.utils.cast(module_name),
module_args=mitogen.utils.cast(module_args), module_args=mitogen.utils.cast(module_args),
task_vars=task_vars,
tmp=tmp,
env=mitogen.utils.cast(env), env=mitogen.utils.cast(env),
wrap_async=wrap_async, wrap_async=wrap_async,
) )

@ -60,18 +60,16 @@ class Invocation(object):
helpers.run_module() or helpers.run_module_async() in the target context. helpers.run_module() or helpers.run_module_async() in the target context.
""" """
def __init__(self, action, connection, module_name, module_args, def __init__(self, action, connection, module_name, module_args,
task_vars, tmp, env, wrap_async): env, wrap_async):
#: Instance of the ActionBase subclass invoking the module. Required to #: ActionBase instance invoking the module. Required to access some
#: access some output postprocessing methods that don't belong in #: output postprocessing methods that don't belong in ActionBase at
#: ActionBase at all. #: all.
self.action = action self.action = action
self.connection = connection self.connection = connection
self.module_name = module_name self.module_name = module_name
self.module_args = module_args self.module_args = module_args
self.module_path = None self.module_path = None
self.module_source = None self.module_source = None
self.task_vars = task_vars
self.tmp = tmp
self.env = env self.env = env
self.wrap_async = wrap_async self.wrap_async = wrap_async

Loading…
Cancel
Save