mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-28 03:49:09 -07:00
Revert "remove complex_args_hack as it was only needed for Baby JSON"
This reverts commit a6029264b8
.
Fixes #9400
This commit is contained in:
parent
be972225a5
commit
b4f9631e4c
2 changed files with 22 additions and 0 deletions
|
@ -36,6 +36,8 @@ class ActionModule(object):
|
|||
def run(self, conn, tmp, module_name, module_args, inject, complex_args=None, **kwargs):
|
||||
''' transfer & execute a module that is not 'copy' or 'template' '''
|
||||
|
||||
module_args = self.runner._complex_args_hack(complex_args, module_args)
|
||||
|
||||
if self.runner.noop_on_check(inject):
|
||||
if module_name in [ 'shell', 'command' ]:
|
||||
return ReturnData(conn=conn, comm_ok=True, result=dict(skipped=True, msg='check mode not supported for %s' % module_name))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue