Remove windows drive letter from path if running a chef solo provisioner on a Windows guest
This commit is contained in:
parent
923f8e1622
commit
a221235307
|
@ -77,6 +77,9 @@ module Vagrant
|
||||||
# Path already exists on the virtual machine. Expand it
|
# Path already exists on the virtual machine. Expand it
|
||||||
# relative to where we're provisioning.
|
# relative to where we're provisioning.
|
||||||
remote_path = File.expand_path(path, config.provisioning_path)
|
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
|
end
|
||||||
|
|
||||||
# Return the result
|
# Return the result
|
||||||
|
|
Loading…
Reference in New Issue