Don't duplicate names when defining new machines in VFile

This commit is contained in:
Mitchell Hashimoto 2013-04-09 19:05:35 -07:00
parent c1f53a4ace
commit 5690aef4b0
2 changed files with 3 additions and 1 deletions

View File

@ -77,6 +77,8 @@ BUG FIXES:
- `config.ssh` settings override all detected SSH settings (regression). [GH-1479]
- `ssh-config` won't raise an exception if the VirtualBox machine
is not created. [GH-1562]
- Multiple machines defined in the same Vagrantfile with the same
name will properly merge.
## 1.1.6 (April 3, 2013)

View File

@ -172,7 +172,7 @@ module VagrantPlugins
# Add the name to the array of VM keys. This array is used to
# preserve the order in which VMs are defined.
@__defined_vm_keys << name
@__defined_vm_keys << name if !@__defined_vm_keys.include?(name)
# Add the SubVM to the hash of defined VMs
if !@__defined_vms[name]