mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-25 06:35:38 +02:00
change perl dep (#2595)
This commit is contained in:
parent
beb682cac8
commit
4d01712e2c
@ -26,7 +26,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::http;
|
use centreon::plugins::http;
|
||||||
use centreon::plugins::statefile;
|
use centreon::plugins::statefile;
|
||||||
use XML::Simple;
|
use XML::LibXML::Simple;
|
||||||
use Digest::MD5 qw(md5_hex);
|
use Digest::MD5 qw(md5_hex);
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
@ -198,6 +198,7 @@ sub request_api {
|
|||||||
|
|
||||||
my $result;
|
my $result;
|
||||||
eval {
|
eval {
|
||||||
|
$SIG{__WARN__} = sub {};
|
||||||
$result = XMLin($content, ForceArray => $options{ForceArray}, KeyAttr => []);
|
$result = XMLin($content, ForceArray => $options{ForceArray}, KeyAttr => []);
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user