]> git.proxmox.com Git - pve-cluster.git/blobdiff - data/PVE/CLI/pvecm.pm
fix #2727: pass correct format for linkX
[pve-cluster.git] / 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