From 2665231363925c63e6f8ff234b79d7ef4792e70f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 29 Aug 2011 00:51:07 -0700 Subject: [PATCH] Don't expand VM folders for Chef --- lib/vagrant/provisioners/chef_solo.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vagrant/provisioners/chef_solo.rb b/lib/vagrant/provisioners/chef_solo.rb index 27d3eb025..2b5a2f310 100644 --- a/lib/vagrant/provisioners/chef_solo.rb +++ b/lib/vagrant/provisioners/chef_solo.rb @@ -74,9 +74,9 @@ module Vagrant # Path exists on the host, setup the remote path remote_path = "#{config.provisioning_path}/chef-solo-#{get_and_update_counter(:cookbooks_path)}" else - # Path already exists on the virtual machine. Expand it - # relative to where we're provisioning. - remote_path = File.expand_path(path, config.provisioning_path) + # Path already exists on the virtual machine, therefore + # just use the path given. + remote_path = path end # Return the result