From 18894b81cd2718c470c87754a0916111a3368cef Mon Sep 17 00:00:00 2001 From: "Jason D. Smith" Date: Fri, 16 May 2014 12:56:30 -0400 Subject: [PATCH] Inverting the hash of driver_mac_addresses returned by machine.provider.capability(:nic_mac_addresses). The previous code expected the hash to use the mac addresses as the keys, the original code had the indices as the keys. --- plugins/guests/windows/cap/configure_networks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/windows/cap/configure_networks.rb b/plugins/guests/windows/cap/configure_networks.rb index c8c2c1061..326978517 100644 --- a/plugins/guests/windows/cap/configure_networks.rb +++ b/plugins/guests/windows/cap/configure_networks.rb @@ -57,7 +57,7 @@ module VagrantPlugins provider: machine.provider_name.to_s end - driver_mac_address = machine.provider.capability(:nic_mac_addresses) + driver_mac_address = machine.provider.capability(:nic_mac_addresses).invert @@logger.debug("mac addresses: #{driver_mac_address.inspect}") vm_interface_map = {}