mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 23:54:18 +02:00
enhance cisco meraki
This commit is contained in:
parent
aaeac22093
commit
def50883ea
@ -180,7 +180,7 @@ sub request_api {
|
|||||||
|
|
||||||
my $content;
|
my $content;
|
||||||
eval {
|
eval {
|
||||||
$content = JSON::XS->new->utf8->decode($response);
|
$content = JSON::XS->new->allow_nonref(1)->utf8->decode($response);
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
$self->{output}->add_option_msg(short_msg => "Cannot decode json response: $@");
|
$self->{output}->add_option_msg(short_msg => "Cannot decode json response: $@");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user