mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Properly use check_raw when using parse_kv in cli/ code
Fixes ansible-modules-core#3070
This commit is contained in:
parent
407f8f934e
commit
ae21d98955
2 changed files with 4 additions and 3 deletions
|
@ -183,12 +183,12 @@ class ConsoleCLI(CLI, cmd.Cmd):
|
|||
|
||||
result = None
|
||||
try:
|
||||
check_raw = self.options.module_name in ('command', 'shell', 'script', 'raw')
|
||||
play_ds = dict(
|
||||
name = "Ansible Shell",
|
||||
hosts = self.options.cwd,
|
||||
gather_facts = 'no',
|
||||
#tasks = [ dict(action=dict(module=module, args=parse_kv(module_args)), async=self.options.async, poll=self.options.poll_interval) ]
|
||||
tasks = [ dict(action=dict(module=module, args=parse_kv(module_args)))]
|
||||
tasks = [ dict(action=dict(module=module, args=parse_kv(module_args, check_raw=check_raw)))]
|
||||
)
|
||||
play = Play().load(play_ds, variable_manager=self.variable_manager, loader=self.loader)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue