mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Fix logic for debug output about finding network by ip
This commit is contained in:
parent
1aabe66b23
commit
da01c0e611
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user