Merge pull request #2 from nagas/improvement/ignore_private_ip

check explicitly if hostmanager.ignore_private_ip is set to true
This commit is contained in:
Shawn Dahlen 2013-04-17 05:35:13 -07:00
commit c94b1f8d52
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