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:
@@ -39,7 +39,10 @@ class ActionModule(object):
|
||||
if self.runner.check:
|
||||
return ReturnData(conn=conn, comm_ok=True, result=dict(skipped=True, msg='check mode not supported for this module'))
|
||||
|
||||
args = parse_kv(module_args)
|
||||
args = {}
|
||||
if complex_args:
|
||||
args.update(complex_args)
|
||||
args.update(parse_kv(module_args))
|
||||
if not 'hostname' in args and not 'name' in args:
|
||||
raise ae("'name' is a required argument.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user