]> git.proxmox.com Git - pve-firewall.git/blobdiff - src/PVE/Service/pve_firewall.pm
localnet: simplify code
[pve-firewall.git] / src / PVE / Service / pve_firewall.pm
index e4dcc5165d5c30ee8e1065609aba84c6098c34d7..3c9fd66ab61d06c97803ed8b2b0f0668f1b1d6bf 100755 (executable)
@@ -274,9 +274,7 @@ __PACKAGE__->register_method ({
            PVE::Corosync::for_all_corosync_addresses($corosync_conf, undef, sub {
                my ($curr_node_name, $curr_node_ip, undef, $key) = @_;
 
-               if (!$corosync_node_found) {
-                   $corosync_node_found = 1;
-               }
+               $corosync_node_found = 1;
 
                $key =~ m/(?:ring|link)(\d+)_addr/;
                print " - $curr_node_name: $curr_node_ip (link: $1)\n";