From 8fa8aefefe909092c84cbb6e2857b73574676bac Mon Sep 17 00:00:00 2001 From: qgarnier Date: Thu, 22 Oct 2020 15:54:09 +0200 Subject: [PATCH] fix celerra (#2283) --- storage/emc/celerra/local/mode/getreason.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/emc/celerra/local/mode/getreason.pm b/storage/emc/celerra/local/mode/getreason.pm index f7ff73a45..95395683d 100644 --- a/storage/emc/celerra/local/mode/getreason.pm +++ b/storage/emc/celerra/local/mode/getreason.pm @@ -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(); } }