From aaa09749e4381999544e2f5dbaaef8045167c4d0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 10 Jul 2011 14:19:34 -0700 Subject: [PATCH] Only get the home path on the root environment --- lib/vagrant/environment.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index 0687db185..36036c271 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -97,6 +97,7 @@ module Vagrant # # @return [Pathname] def home_path + return parent.home_path if parent return @_home_path if defined?(@_home_path) @_home_path ||= Pathname.new(File.expand_path(ENV["VAGRANT_HOME"] || DEFAULT_HOME))