From e0203cddc8f5b3e5332ef17b22c3a8e76e6b5fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miros=C5=82aw=20Naga=C5=9B?= Date: Wed, 17 Apr 2013 11:44:20 +0200 Subject: [PATCH] check explicitly if hostmanager.ignore_private_ip is set to true --- lib/vagrant-hostmanager/hosts_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-hostmanager/hosts_file.rb b/lib/vagrant-hostmanager/hosts_file.rb index fb9af39..7ee7241 100644 --- a/lib/vagrant-hostmanager/hosts_file.rb +++ b/lib/vagrant-hostmanager/hosts_file.rb @@ -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