]> git.proxmox.com Git - pve-cluster.git/commitdiff
pvecm: exec corosync commands directly
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Feb 2020 08:32:07 +0000 (09:32 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Feb 2020 08:32:07 +0000 (09:32 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/CLI/pvecm.pm

index a838ff2c620a53f8199521689c5dbd3ee0b44d29..a36c2bdfba6de13dafde51414582569692d50782 100755 (executable)
@@ -479,10 +479,7 @@ __PACKAGE__->register_method ({
            printf "\n";
        }
 
-       my $cmd = ['corosync-quorumtool', '-siH'];
-
-       exec (@$cmd);
-
+       exec ('corosync-quorumtool', '-siH');
        exit (-1); # should not be reached
     }});
 
@@ -502,10 +499,7 @@ __PACKAGE__->register_method ({
 
        PVE::Corosync::check_conf_exists();
 
-       my $cmd = ['corosync-quorumtool', '-l'];
-
-       exec (@$cmd);
-
+       exec ('corosync-quorumtool', '-l');
        exit (-1); # should not be reached
     }});
 
@@ -531,12 +525,8 @@ __PACKAGE__->register_method ({
 
        PVE::Corosync::check_conf_exists();
 
-       my $cmd = ['corosync-quorumtool', '-e', $param->{expected}];
-
-       exec (@$cmd);
-
+       exec ('corosync-quorumtool', '-e', $param->{expected});
        exit (-1); # should not be reached
-
     }});
 
 __PACKAGE__->register_method ({