Remove windows drive letter from path if running a chef solo provisioner on a Windows guest

This commit is contained in:
Michael Dellanoce 2011-10-31 08:37:04 -04:00 committed by Mitchell Hashimoto
parent 923f8e1622
commit a221235307
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ 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
remote_path = remote_path.gsub(/^[a-zA-Z]:/, "")
end
# Return the result