From: Fabian Grünbichler Date: Wed, 3 Jul 2019 13:58:16 +0000 (+0200) Subject: localnet: simplify code X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=cb161529c65c0c41056d3eeb4370e80990df8b99 localnet: simplify code Signed-off-by: Fabian Grünbichler --- 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";