mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-29 00:24:46 +02:00
enhance wazuh
This commit is contained in:
parent
c7f25b8dc4
commit
cbaa56cd6a
@ -162,7 +162,7 @@ sub request {
|
||||
$decoded = JSON::XS->new->utf8->decode($content);
|
||||
};
|
||||
if ($@) {
|
||||
$self->{output}->add_option_msg(short_msg => "Cannot decode json response");
|
||||
$self->{output}->add_option_msg(short_msg => 'Cannot decode json response');
|
||||
$self->{output}->option_exit();
|
||||
}
|
||||
if ($decoded->{error} != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user