mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-24 22:25:02 +02:00
Merge pull request #2169 from UrBnW/nsclientjson
fix(nsclient) properly decode JSON
This commit is contained in:
commit
48d16cde4e
@ -186,7 +186,7 @@ sub format_result {
|
|||||||
|
|
||||||
my $decoded;
|
my $decoded;
|
||||||
eval {
|
eval {
|
||||||
$decoded = decode_json($options{content});
|
$decoded = JSON::XS->new->decode($options{content});
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
$self->{output}->output_add(long_msg => $options{content}, debug => 1);
|
$self->{output}->output_add(long_msg => $options{content}, debug => 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user