fix celerra (#2283)

This commit is contained in:
qgarnier 2020-10-22 15:54:09 +02:00 committed by GitHub
parent 1764813745
commit 8fa8aefefe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ sub set_system {
sub cmd_execute {
my ($self, %options) = @_;
my ($stdout, $exit_code) = $options{custom}->execute_command(
($self->{stdout}, my $exit_code) = $options{custom}->execute_command(
command => 'getreason',
command_path => '/nas/sbin',
command_options => '2>&1',
@ -75,7 +75,7 @@ sub cmd_execute {
);
if ($exit_code != 0 && $exit_code != 255) {
$self->{output}->add_option_msg(short_msg => "Command error: $stdout");
$self->{output}->add_option_msg(short_msg => "Command error: $self->{stdout}");
$self->{output}->option_exit();
}
}