Do not intercept STDERR in Proxmox plugin (finally fixes "unexpected status"!)
This commit is contained in:
@@ -37,16 +37,6 @@ sub run_cli
|
|||||||
$json = 1 if !defined $json;
|
$json = 1 if !defined $json;
|
||||||
my $binary = delete $args{binary};
|
my $binary = delete $args{binary};
|
||||||
$binary = '/usr/bin/vitastor-cli' if !defined $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}))
|
if (!exists($args{outfunc}))
|
||||||
{
|
{
|
||||||
$retval = '';
|
$retval = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user