mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
enh(sccm): sites-status mode - better encoding management (#3074)
This commit is contained in:
parent
a71bcabdf4
commit
0c05cb0e7e
@ -161,7 +161,7 @@ sub manage_selection {
|
||||
|
||||
my $decoded;
|
||||
eval {
|
||||
$decoded = JSON::XS->new->utf8->decode($stdout);
|
||||
$decoded = JSON::XS->new->decode($self->{output}->decode($stdout));
|
||||
};
|
||||
if ($@) {
|
||||
$self->{output}->add_option_msg(short_msg => "Cannot decode json response: $@");
|
||||
|
Loading…
x
Reference in New Issue
Block a user