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.