localnet: rename variables
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 3 Jul 2019 13:57:43 +0000 (15:57 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 3 Jul 2019 13:57:43 +0000 (15:57 +0200)
to prevent confusion between local nodename and iterator entry

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/Service/pve_firewall.pm

index 39ceb39..e4dcc51 100755 (executable)
@@ -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) {