From 9e26e31a6ba668bf884b07968ec291810b9d678c Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 11 Aug 2016 13:00:37 -0700 Subject: [PATCH] Add generated private key options to rsync command --- plugins/synced_folders/rsync/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/synced_folders/rsync/helper.rb b/plugins/synced_folders/rsync/helper.rb index ad66418cf..1a25f27a6 100644 --- a/plugins/synced_folders/rsync/helper.rb +++ b/plugins/synced_folders/rsync/helper.rb @@ -108,7 +108,7 @@ module VagrantPlugins # If specified, attach the private key paths. if ssh_info[:private_key_path] - ssh_info[:private_key_path].map { |p| "-i '#{p}'" } + rsh += ssh_info[:private_key_path].map { |p| "-i '#{p}'" } end # Exclude some files by default, and any that might be configured