From 1c1989f4ce0ae88344db2c7eaddfbf149c5231a9 Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Thu, 17 Oct 2019 18:12:17 +0200 Subject: [PATCH] handle error in ansible cli --- centreon-plugins/apps/automation/ansible/cli/custom/cli.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/centreon-plugins/apps/automation/ansible/cli/custom/cli.pm b/centreon-plugins/apps/automation/ansible/cli/custom/cli.pm index ea795df48..c55438bde 100644 --- a/centreon-plugins/apps/automation/ansible/cli/custom/cli.pm +++ b/centreon-plugins/apps/automation/ansible/cli/custom/cli.pm @@ -99,7 +99,8 @@ sub execute { sudo => $self->{option_results}->{sudo}, command => $self->{option_results}->{command}, command_path => $self->{option_results}->{command_path}, - command_options => $options{cmd_options} + command_options => $options{cmd_options}, + no_errors => { 4 => 1 } ); my $raw_results;