check explicitly if hostmanager.ignore_private_ip is set to true
This commit is contained in:
parent
655612b9f6
commit
e0203cddc8
|
@ -10,7 +10,7 @@ module VagrantPlugins
|
||||||
# define a lambda for looking up a machine's ip address
|
# define a lambda for looking up a machine's ip address
|
||||||
get_ip_address = lambda do |machine|
|
get_ip_address = lambda do |machine|
|
||||||
ip = nil
|
ip = nil
|
||||||
unless machine.config.hostmanager.ignore_private_ip
|
if machine.config.hostmanager.ignore_private_ip != true
|
||||||
machine.config.vm.networks.each do |network|
|
machine.config.vm.networks.each do |network|
|
||||||
key, options = network[0], network[1]
|
key, options = network[0], network[1]
|
||||||
ip = options[:ip] if key == :private_network
|
ip = options[:ip] if key == :private_network
|
||||||
|
|
Loading…
Reference in New Issue