check explicitly if hostmanager.ignore_private_ip is set to true

This commit is contained in:
Mirosław Nagaś 2013-04-17 11:44:20 +02:00
parent 655612b9f6
commit e0203cddc8
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ module VagrantPlugins
# define a lambda for looking up a machine's ip address
get_ip_address = lambda do |machine|
ip = nil
unless machine.config.hostmanager.ignore_private_ip
if machine.config.hostmanager.ignore_private_ip != true
machine.config.vm.networks.each do |network|
key, options = network[0], network[1]
ip = options[:ip] if key == :private_network