enhance wazuh

This commit is contained in:
garnier-quentin 2019-08-08 11:35:17 +02:00
parent c7f25b8dc4
commit cbaa56cd6a
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) {