From c17efbed755df621d6571742e163e8dff61dd119 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 11 Oct 2015 18:38:08 -0400 Subject: [PATCH] core: ignore VAGRANT_DOTFILE_PATH if a child environment This causes issues since the child environment almost certainly doesn't share data with the parent. In a larger scope, we should find a way to encode the data path somehow on `vagrant up`. --- lib/vagrant/environment.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index 0981d9df6..015e4b95f 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -159,7 +159,7 @@ module Vagrant # Setup the local data directory. If a configuration path is given, # then it is expanded relative to the working directory. Otherwise, # we use the default which is expanded relative to the root path. - opts[:local_data_path] ||= ENV["VAGRANT_DOTFILE_PATH"] + opts[:local_data_path] ||= ENV["VAGRANT_DOTFILE_PATH"] if !opts[:child] opts[:local_data_path] ||= root_path.join(DEFAULT_LOCAL_DATA) if !root_path.nil? if opts[:local_data_path] @local_data_path = Pathname.new(File.expand_path(opts[:local_data_path], @cwd)) @@ -427,6 +427,7 @@ module Vagrant Util::SilenceWarnings.silence! do Environment.new({ + child: true, cwd: path, home_path: home_path, ui_class: ui_class,