Merge pull request #9302 from eyJhb/master
Fixed hostonly matching not respecting :name argument
This commit is contained in:
commit
007e6f49aa
|
@ -479,6 +479,11 @@ module VagrantPlugins
|
|||
@env[:machine].provider.driver.read_host_only_interfaces.each do |interface|
|
||||
return interface if config[:name] && config[:name] == interface[:name]
|
||||
|
||||
#if a config name is specified, we should only look for that.
|
||||
if config[:name] != ""
|
||||
next
|
||||
end
|
||||
|
||||
if interface[:ip] != ""
|
||||
return interface if this_netaddr == \
|
||||
network_address(interface[:ip], interface[:netmask])
|
||||
|
|
Loading…
Reference in New Issue