]> git.proxmox.com Git - pve-cluster.git/commitdiff
fix #2727: pass correct format for linkX
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 12 May 2020 08:59:04 +0000 (10:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 May 2020 12:45:22 +0000 (14:45 +0200)
to unbreak joining via SSH with an explicit link address.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
data/PVE/CLI/pvecm.pm

index b381f4f1d105430c39e10cfe64e4b52490668f81..fe099d47c3445bbd6a28b399b2023523d57e771d 100755 (executable)
@@ -405,9 +405,11 @@ __PACKAGE__->register_method ({
            push @$cmd, '--nodeid', $param->{nodeid} if $param->{nodeid};
            push @$cmd, '--votes', $param->{votes} if defined($param->{votes});
 
+           my $link_desc = get_standard_option('corosync-link');
+
            foreach my $link (keys %$links) {
                push @$cmd, "--link$link", PVE::JSONSchema::print_property_string(
-                   $links->{$link}, get_standard_option('corosync-link'));
+                   $links->{$link}, $link_desc->{format});
            }
 
            # this will be used as fallback if no links are specified