From 41f82869ca4c7dbed9f33aa6787600d504e988fe Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Fri, 18 Oct 2019 10:49:44 +0200 Subject: [PATCH] better handle aws cli debug --- centreon-plugins/cloud/aws/custom/awscli.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/cloud/aws/custom/awscli.pm b/centreon-plugins/cloud/aws/custom/awscli.pm index 9e19db096..b72f5e346 100644 --- a/centreon-plugins/cloud/aws/custom/awscli.pm +++ b/centreon-plugins/cloud/aws/custom/awscli.pm @@ -140,7 +140,7 @@ sub execute { command => $self->{option_results}->{command}, command_path => $self->{option_results}->{command_path}, command_options => $cmd_options, - redirect_stderr => 1 + redirect_stderr => ($self->{output}->is_debug()) ? 0 : 1 ); my $raw_results;