Fixes a bug where interfaces are assigned in a wrong order when using ruby1.8, causing vm boot to stop as documented in issue #898

This commit is contained in:
Lars Fronius 2012-04-26 21:09:39 +02:00
parent 582f214024
commit 534faeae7c
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ module Vagrant
# Make a first pass to assign interface numbers by adapter location
vm_adapters = @env[:vm].driver.read_network_interfaces
vm_adapters.each do |number, adapter|
vm_adapters.sort.each do |number, adapter|
if adapter[:type] != :none
# Not used, so assign the interface number and increment
adapter_to_interface[number] = current