Fix blank resource output on base box export [closes GH-267]

This commit is contained in:
Mitchell Hashimoto 2011-01-09 15:52:19 -08:00
parent 766607db49
commit c4bacdfe2d
1 changed files with 2 additions and 1 deletions

View File

@ -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.