Fix blank resource output on base box export [closes GH-267]
This commit is contained in:
parent
766607db49
commit
c4bacdfe2d
|
@ -116,7 +116,8 @@ module Vagrant
|
||||||
#
|
#
|
||||||
# @return [String]
|
# @return [String]
|
||||||
def resource
|
def resource
|
||||||
vm.name rescue "vagrant"
|
result = vm.name rescue nil
|
||||||
|
result || "vagrant"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns the collection of boxes for the environment.
|
# Returns the collection of boxes for the environment.
|
||||||
|
|
Loading…
Reference in New Issue