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:
parent
582f214024
commit
534faeae7c
|
@ -135,7 +135,7 @@ module Vagrant
|
||||||
|
|
||||||
# Make a first pass to assign interface numbers by adapter location
|
# Make a first pass to assign interface numbers by adapter location
|
||||||
vm_adapters = @env[:vm].driver.read_network_interfaces
|
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
|
if adapter[:type] != :none
|
||||||
# Not used, so assign the interface number and increment
|
# Not used, so assign the interface number and increment
|
||||||
adapter_to_interface[number] = current
|
adapter_to_interface[number] = current
|
||||||
|
|
Loading…
Reference in New Issue