From: Thomas Lamprecht Date: Wed, 19 Feb 2020 08:32:07 +0000 (+0100) Subject: pvecm: exec corosync commands directly X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=28d5105b10c07a9cb789103c3de5946b8d967473;p=pve-cluster.git pvecm: exec corosync commands directly Signed-off-by: Thomas Lamprecht --- diff --git a/data/PVE/CLI/pvecm.pm b/data/PVE/CLI/pvecm.pm index a838ff2..a36c2bd 100755 --- a/data/PVE/CLI/pvecm.pm +++ b/data/PVE/CLI/pvecm.pm @@ -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 ({