From ff5028ad12d21a794ffe1a4e1b559b08552d0d13 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Thu, 18 Feb 2021 11:03:47 +0100 Subject: [PATCH] change perl dep (#2595) --- .../hardware/devices/cisco/ces/restapi/custom/api.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/centreon-plugins/hardware/devices/cisco/ces/restapi/custom/api.pm b/centreon-plugins/hardware/devices/cisco/ces/restapi/custom/api.pm index 8629330b6..33cac29d4 100644 --- a/centreon-plugins/hardware/devices/cisco/ces/restapi/custom/api.pm +++ b/centreon-plugins/hardware/devices/cisco/ces/restapi/custom/api.pm @@ -26,7 +26,7 @@ use strict; use warnings; use centreon::plugins::http; use centreon::plugins::statefile; -use XML::Simple; +use XML::LibXML::Simple; use Digest::MD5 qw(md5_hex); sub new { @@ -198,6 +198,7 @@ sub request_api { my $result; eval { + $SIG{__WARN__} = sub {}; $result = XMLin($content, ForceArray => $options{ForceArray}, KeyAttr => []); }; if ($@) {