Fix logic for debug output about finding network by ip

This commit is contained in:
Brian Pitts 2014-01-17 18:24:58 -06:00
parent 1aabe66b23
commit da01c0e611

View File

@ -154,8 +154,10 @@ module VagrantPlugins
if options[:ip]
address = network_address(options[:ip], options[:netmask])
available_networks.each do |network|
@logger.debug "Found network by ip"
return network[:name] if address == network[:network_address]
if address == network[:network_address]
@logger.debug "Found network by ip"
return network[:name]
end
end
end