Don't turn complex args back into a k=v string for the synchronize module

Fixes #6951
pull/6992/head
James Cammarata 11 years ago
parent 6ec0e25d1a
commit 40b958e348

@ -198,14 +198,12 @@ class ActionModule(object):
if rsync_path:
options['rsync_path'] = '"' + rsync_path + '"'
module_items = ' '.join(['%s=%s' % (k, v) for (k,
v) in options.items()])
module_args = ""
if self.runner.noop_on_check(inject):
module_items += " CHECKMODE=True"
module_args = "CHECKMODE=True"
# run the module and store the result
result = self.runner._execute_module(conn, tmp, 'synchronize', module_items, inject=inject)
result = self.runner._execute_module(conn, tmp, 'synchronize', module_args, complex_args=options, inject=inject)
# reset the sudo property
self.runner.sudo = self.original_sudo

Loading…
Cancel
Save