From ab12c782ef5d948b3604e1e589ad72175e6d60c2 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 5 Feb 2021 13:13:13 +0100 Subject: [PATCH] Changed exit code so error modules are created --- pandora_server/lib/PandoraFMS/PluginTools.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/PluginTools.pm b/pandora_server/lib/PandoraFMS/PluginTools.pm index 91d113b464..8a84b43036 100644 --- a/pandora_server/lib/PandoraFMS/PluginTools.pm +++ b/pandora_server/lib/PandoraFMS/PluginTools.pm @@ -959,7 +959,7 @@ sub print_error { if (is_enabled($conf->{'as_server_plugin'})) { print STDERR $msg . "\n"; print $value . "\n"; - exit 1; + exit 0; } print_module($conf, { @@ -968,7 +968,7 @@ sub print_error { value => $value, desc => $msg, }); - exit 1; + exit 0; } ################################################################################