enhance wazuh

This commit is contained in:
garnier-quentin 2019-08-08 11:35:17 +02:00
parent fc0d98a2ff
commit 9611008f7b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {