]> git.proxmox.com Git - pve-cluster.git/commitdiff
fix #2479: use correct sub in create_conf
authorOguz Bektas <o.bektas@proxmox.com>
Fri, 22 Nov 2019 15:21:44 +0000 (16:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 22 Nov 2019 15:22:29 +0000 (16:22 +0100)
'pvecm create' fails since the subroutine doesn't exist in PVE::Cluster
but in PVE::Corosync

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
data/PVE/Corosync.pm

index 1b92ea37ef9764926c43bf8c350ac20d98c442d9..3208a6bf1925ac6166d90d57d991047d5b1b14e9 100644 (file)
@@ -239,7 +239,7 @@ sub create_conf {
 
     my $local_ip_address = PVE::Cluster::remote_node_ip($nodename);
 
 
     my $local_ip_address = PVE::Cluster::remote_node_ip($nodename);
 
-    my $link0 = PVE::Cluster::parse_corosync_link($param{link0});
+    my $link0 = parse_corosync_link($param{link0});
     $link0->{address} //= $local_ip_address;
 
     my $conf = {
     $link0->{address} //= $local_ip_address;
 
     my $conf = {
@@ -278,7 +278,7 @@ sub create_conf {
     $totem->{interface}->{0}->{knet_link_priority} = $link0->{priority}
        if defined($link0->{priority});
 
     $totem->{interface}->{0}->{knet_link_priority} = $link0->{priority}
        if defined($link0->{priority});
 
-    my $link1 = PVE::Cluster::parse_corosync_link($param{link1});
+    my $link1 = parse_corosync_link($param{link1});
     if ($link1->{address}) {
        $conf->{totem}->{interface}->{1} = {
            linknumber => 1,
     if ($link1->{address}) {
        $conf->{totem}->{interface}->{1} = {
            linknumber => 1,