mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 21:55:16 +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;
|
||||
eval {
|
||||
$decoded = decode_json($options{content});
|
||||
$decoded = JSON::XS->new->decode($options{content});
|
||||
};
|
||||
if ($@) {
|
||||
$self->{output}->output_add(long_msg => $options{content}, debug => 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user