diff --git a/CHANGELOG.md b/CHANGELOG.md index 68eb82d1c..399bb6aa1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ - Add comments to Vagrantfile to make it detected as Ruby file for `vi` and `emacs`. [GH-515] - More correct guest addition version checking. [GH-514] + - Chef solo support on Windows is improved. [GH-542] ## 0.8.7 (September 13, 2011) diff --git a/lib/vagrant/provisioners/chef_solo.rb b/lib/vagrant/provisioners/chef_solo.rb index 2d366893f..90747fb80 100644 --- a/lib/vagrant/provisioners/chef_solo.rb +++ b/lib/vagrant/provisioners/chef_solo.rb @@ -77,8 +77,11 @@ module Vagrant # Path already exists on the virtual machine. Expand it # relative to where we're provisioning. remote_path = File.expand_path(path, config.provisioning_path) - - # Remove drive letter if running on a windows host + + # Remove drive letter if running on a windows host. This is a bit + # of a hack but is the most portable way I can think of at the moment + # to achieve this. Otherwise, Vagrant attempts to share at some crazy + # path like /home/vagrant/c:/foo/bar remote_path = remote_path.gsub(/^[a-zA-Z]:/, "") end