diff --git a/lib/kitchen/transport/rsync.rb b/lib/kitchen/transport/rsync.rb index f38e6bc..5881104 100644 --- a/lib/kitchen/transport/rsync.rb +++ b/lib/kitchen/transport/rsync.rb @@ -39,7 +39,7 @@ def upload(locals, remote) recursive = File.directory?(local) execute("mkdir -p #{full_remote}") if recursive time = Benchmark.realtime do - ssh_command = [login_command.command, login_command.arguments].flatten.join(' ') + ssh_command = [login_command.command, login_command.arguments[0..-2]].flatten.join(' ') sync_command = "rsync -e '#{ssh_command}' -a#{@logger.debug? ? 'v' : ''}z #{local} #{@session.options[:user]}@#{@session.host}:#{remote}" @logger.debug("[RSYNC] Running rsync command: #{sync_command}") system(sync_command) @@ -51,4 +51,4 @@ def upload(locals, remote) end end -end \ No newline at end of file +end