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:
parent
5899227126
commit
18894b81cd
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in New Issue