mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
Ensure complex_args is considered in all action_plugins
This commit is contained in:
parent
297259725a
commit
ae8d6ac303
10 changed files with 39 additions and 14 deletions
|
@ -40,7 +40,10 @@ class ActionModule(object):
|
|||
return ReturnData(conn=conn, comm_ok=True, result=dict(skipped=True, msg='check mode not (yet) supported for this module'))
|
||||
|
||||
# load up options
|
||||
options = utils.parse_kv(module_args)
|
||||
options = {}
|
||||
if complex_args:
|
||||
options.update(complex_args)
|
||||
options.update(utils.parse_kv(module_args))
|
||||
source = options.get('src', None)
|
||||
dest = options.get('dest', None)
|
||||
if source is None or dest is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue