Revert "Track local_action internally to prevent it from being overridden"

This reverts commit 49ca0eb797.
This commit is contained in:
Brian Coca 2015-10-09 12:48:14 -04:00
parent 101c8785ec
commit abf2e13955
3 changed files with 6 additions and 22 deletions

View file

@ -254,7 +254,6 @@ class ModuleArgsParser:
action, args = self._normalize_parameters(thing, additional_args=additional_args)
# local_action
local_action = False
if 'local_action' in self._task_ds:
# local_action is similar but also implies a delegate_to
if action is not None:
@ -263,6 +262,8 @@ class ModuleArgsParser:
delegate_to = 'localhost'
action, args = self._normalize_parameters(thing, additional_args=additional_args)
# module: <stuff> is the more new-style invocation
# walk the input dictionary to see we recognize a module name
for (item, value) in iteritems(self._task_ds):
if item in module_loader or item == 'meta' or item == 'include':