mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Don't split args out unless we're parsing module args using the new style
Fixes #12331
This commit is contained in:
parent
1cb4e0be1c
commit
aa762bb432
1 changed files with 6 additions and 7 deletions
|
@ -150,8 +150,7 @@ class ModuleArgsParser:
|
||||||
|
|
||||||
# this can occasionally happen, simplify
|
# this can occasionally happen, simplify
|
||||||
if args and 'args' in args:
|
if args and 'args' in args:
|
||||||
tmp_args = args['args']
|
tmp_args = args.pop('args')
|
||||||
del args['args']
|
|
||||||
if isinstance(tmp_args, string_types):
|
if isinstance(tmp_args, string_types):
|
||||||
tmp_args = parse_kv(tmp_args)
|
tmp_args = parse_kv(tmp_args)
|
||||||
args.update(tmp_args)
|
args.update(tmp_args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue