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.
This commit is contained in:
Jason D. Smith 2014-05-16 12:56:30 -04:00
parent 5899227126
commit 18894b81cd
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {}