Properly use check_raw when using parse_kv in cli/ code

Fixes ansible-modules-core#3070
pull/15204/head
James Cammarata 9 years ago
parent 4705f22d37
commit f18dac0d39

@ -81,11 +81,12 @@ class AdHocCLI(CLI):
return True return True
def _play_ds(self, pattern, async, poll): def _play_ds(self, pattern, async, poll):
check_raw = self.options.module_name in ('command', 'shell', 'script', 'raw')
return dict( return dict(
name = "Ansible Ad-Hoc", name = "Ansible Ad-Hoc",
hosts = pattern, hosts = pattern,
gather_facts = 'no', gather_facts = 'no',
tasks = [ dict(action=dict(module=self.options.module_name, args=parse_kv(self.options.module_args)), async=async, poll=poll) ] tasks = [ dict(action=dict(module=self.options.module_name, args=parse_kv(self.options.module_args, check_raw=check_raw)), async=async, poll=poll) ]
) )
def run(self): def run(self):

Loading…
Cancel
Save