Do not intercept STDERR in Proxmox plugin (finally fixes "unexpected status"!)

This commit is contained in:
Vitaliy Filippov
2024-12-28 21:18:49 +03:00
parent 561b36a4c1
commit 42d40153ff
-10
View File
@@ -37,16 +37,6 @@ sub run_cli
$json = 1 if !defined $json;
my $binary = delete $args{binary};
$binary = '/usr/bin/vitastor-cli' if !defined $binary;
if (!exists($args{errfunc}))
{
$args{errfunc} = sub
{
my $line = shift;
print STDERR $line;
*STDERR->flush();
$stderr .= $line;
};
}
if (!exists($args{outfunc}))
{
$retval = '';