From 1fd9aec493ee0a2f2f9b859734c8a99b7f024b2b Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 19 Nov 2015 16:07:58 -0800 Subject: [PATCH] Only append folder suffixes if we are sharing host folder paths Fixes GH-6472 --- plugins/provisioners/chef/provisioner/chef_solo.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/provisioners/chef/provisioner/chef_solo.rb b/plugins/provisioners/chef/provisioner/chef_solo.rb index 1fc29da6e..fd8582138 100644 --- a/plugins/provisioners/chef/provisioner/chef_solo.rb +++ b/plugins/provisioners/chef/provisioner/chef_solo.rb @@ -104,7 +104,9 @@ module VagrantPlugins end # If we have specified a folder name to append then append it - remote_path += "/#{appended_folder}" if appended_folder + if type == :host + remote_path += "/#{appended_folder}" if appended_folder + end # Append the result results << [type, local_path, remote_path]