"self.name" needn't be defined for target_vms helper to be used

This commit is contained in:
Mitchell Hashimoto 2010-09-15 12:58:02 -06:00
parent bae6c57230
commit 97c72fbd1d
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ module Vagrant
# This returns an array of {VM} objects depending on the arguments
# given to the command.
def target_vms(name=nil)
name ||= self.name
name ||= self.name rescue nil
@target_vms ||= begin
if env.multivm?