synchronize: Exclude ssh_args from quoting

Makes it possible again to pass more than one argument via ssh_args to the synchronize module.

(cherry picked from commit 3efb11e225)
pull/23172/head
Erwin Lang 8 years ago committed by Toshio Kuratomi
parent 5744abfe4e
commit 131729726f

@ -463,9 +463,9 @@ def main():
ssh_cmd.extend(['-o', 'Port=%s' % dest_port]) ssh_cmd.extend(['-o', 'Port=%s' % dest_port])
if not verify_host: if not verify_host:
ssh_cmd.extend(['-o', 'StrictHostKeyChecking=no']) ssh_cmd.extend(['-o', 'StrictHostKeyChecking=no'])
if ssh_args:
ssh_cmd.append(ssh_args)
ssh_cmd_str = ' '.join(shlex_quote(arg) for arg in ssh_cmd) ssh_cmd_str = ' '.join(shlex_quote(arg) for arg in ssh_cmd)
if ssh_args:
ssh_cmd_str += ' %s' % ssh_args
cmd.append('--rsh=%s' % ssh_cmd_str) cmd.append('--rsh=%s' % ssh_cmd_str)
if rsync_path: if rsync_path:

Loading…
Cancel
Save