From 534faeae7c4623b6c1be62a648b50b018c7ce677 Mon Sep 17 00:00:00 2001 From: Lars Fronius Date: Thu, 26 Apr 2012 21:09:39 +0200 Subject: [PATCH] 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 --- lib/vagrant/action/vm/network.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/action/vm/network.rb b/lib/vagrant/action/vm/network.rb index d2e63b76b..493a73967 100644 --- a/lib/vagrant/action/vm/network.rb +++ b/lib/vagrant/action/vm/network.rb @@ -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