From ae2dc2fac142ad55419410bc1abb578aa91a5ec6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 3 Jul 2019 15:57:43 +0200 Subject: [PATCH] localnet: rename variables MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit to prevent confusion between local nodename and iterator entry Signed-off-by: Fabian Grünbichler --- src/PVE/Service/pve_firewall.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/Service/pve_firewall.pm b/src/PVE/Service/pve_firewall.pm index 39ceb39..e4dcc51 100755 --- a/src/PVE/Service/pve_firewall.pm +++ b/src/PVE/Service/pve_firewall.pm @@ -272,14 +272,14 @@ __PACKAGE__->register_method ({ print "\naccepting corosync traffic from/to:\n"; PVE::Corosync::for_all_corosync_addresses($corosync_conf, undef, sub { - my ($node_name, $node_ip, $node_ipversion, $key) = @_; + my ($curr_node_name, $curr_node_ip, undef, $key) = @_; if (!$corosync_node_found) { $corosync_node_found = 1; } $key =~ m/(?:ring|link)(\d+)_addr/; - print " - $node_name: $node_ip (link: $1)\n"; + print " - $curr_node_name: $curr_node_ip (link: $1)\n"; }); if (!$corosync_node_found) { -- 2.39.2