mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Revert "Track local_action internally to prevent it from being overridden"
This reverts commit 49ca0eb797
.
This commit is contained in:
parent
101c8785ec
commit
abf2e13955
3 changed files with 6 additions and 22 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue