Merge pull request #905 from LarsFronius/master

Fix for issue #898 - interfaces assigned in wrong order under ruby1.8
This commit is contained in:
Mitchell Hashimoto 2012-05-04 20:52:04 -07:00
commit 3b7030ed2c
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