From c4bacdfe2db4a91bfb532f8e585b5c5376ea72c0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 9 Jan 2011 15:52:19 -0800 Subject: [PATCH] Fix blank resource output on base box export [closes GH-267] --- 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 afc340bca..d7a985296 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -116,7 +116,8 @@ module Vagrant # # @return [String] def resource - vm.name rescue "vagrant" + result = vm.name rescue nil + result || "vagrant" end # Returns the collection of boxes for the environment.