mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Ensure complex_args is considered in all action_plugins
This commit is contained in:
@@ -37,7 +37,10 @@ class ActionModule(object):
|
||||
# the group_by module does not need to pay attention to check mode.
|
||||
# it always runs.
|
||||
|
||||
args = parse_kv(self.runner.module_args)
|
||||
args = {}
|
||||
if complex_args:
|
||||
args.update(complex_args)
|
||||
args.update(utils.parse_kv(module_args))
|
||||
if not 'key' in args:
|
||||
raise ae("'key' is a required argument.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user