From 2a7f0d8a859cf8555fc3983cc4a1530aaae85afa Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 10 Dec 2011 13:56:34 -0800 Subject: [PATCH] Return nil if no root path to determine dotfile --- lib/vagrant/environment.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index 4d81a98e7..721985738 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -91,6 +91,7 @@ module Vagrant # # @return [Pathname] def dotfile_path + return nil if !root_path root_path.join(config.global.vagrant.dotfile_name) end