Merge pull request #905 from LarsFronius/master
Fix for issue #898 - interfaces assigned in wrong order under ruby1.8
This commit is contained in:
commit
3b7030ed2c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue