[DRE-commits] [vagrant-libvirt] 57/67: Fix logic for debug output about finding network by ip

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 24 13:56:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag 0.0.14
in repository vagrant-libvirt.

commit da01c0e611d9292edc51032d65672528f258c235
Author: Brian Pitts <brian at polibyte.com>
Date:   Fri Jan 17 18:24:58 2014 -0600

    Fix logic for debug output about finding network by ip
---
 lib/vagrant-libvirt/action/create_network_interfaces.rb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/vagrant-libvirt/action/create_network_interfaces.rb b/lib/vagrant-libvirt/action/create_network_interfaces.rb
index 03a2fae..5d461bc 100644
--- a/lib/vagrant-libvirt/action/create_network_interfaces.rb
+++ b/lib/vagrant-libvirt/action/create_network_interfaces.rb
@@ -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
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-libvirt.git



More information about the Pkg-ruby-extras-commits mailing list