From cb161529c65c0c41056d3eeb4370e80990df8b99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 3 Jul 2019 15:58:16 +0200 Subject: [PATCH] localnet: simplify code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- src/PVE/Service/pve_firewall.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/PVE/Service/pve_firewall.pm b/src/PVE/Service/pve_firewall.pm index e4dcc51..3c9fd66 100755 --- a/src/PVE/Service/pve_firewall.pm +++ b/src/PVE/Service/pve_firewall.pm @@ -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"; -- 2.39.2