From: Fabian Grünbichler Date: Wed, 3 Jul 2019 13:57:43 +0000 (+0200) Subject: localnet: rename variables X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=ae2dc2fac142ad55419410bc1abb578aa91a5ec6 localnet: rename variables to prevent confusion between local nodename and iterator entry Signed-off-by: Fabian Grünbichler --- 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) {