diff --git a/apps/wazuh/restapi/custom/api.pm b/apps/wazuh/restapi/custom/api.pm index 4beea025a..a0fd99efb 100644 --- a/apps/wazuh/restapi/custom/api.pm +++ b/apps/wazuh/restapi/custom/api.pm @@ -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) {