providers/docker: expand path to share relative to docker env

This commit is contained in:
Mitchell Hashimoto 2014-04-28 11:08:58 -07:00
parent d7ecd99e2e
commit d7343c5b56
1 changed files with 6 additions and 0 deletions

View File

@ -88,6 +88,12 @@ module VagrantPlugins
data.delete(:type) data.delete(:type)
end end
# Expand the hostpath relative to _our_ root path. Otherwise,
# it expands it relative to the proxy VM, which is not what
# we want.
data[:hostpath] = File.expand_path(
data[:hostpath], env[:machine].env.root_path)
# Generate an ID that is deterministic based on our machine # Generate an ID that is deterministic based on our machine
# and Vagrantfile path... # and Vagrantfile path...
id = Digest::MD5.hexdigest( id = Digest::MD5.hexdigest(