From 2b755bae1af7ed1c4c3ed9f1eb7815dec57e97be Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 5 May 2020 17:55:09 +0200 Subject: [PATCH] enhance cisco meraki --- .../network/cisco/meraki/cloudcontroller/restapi/custom/api.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm b/centreon-plugins/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm index c70f0b2df..86243d21c 100644 --- a/centreon-plugins/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm +++ b/centreon-plugins/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm @@ -180,7 +180,7 @@ sub request_api { my $content; eval { - $content = JSON::XS->new->utf8->decode($response); + $content = JSON::XS->new->allow_nonref(1)->utf8->decode($response); }; if ($@) { $self->{output}->add_option_msg(short_msg => "Cannot decode json response: $@");