enh(sccm): sites-status mode - better encoding management (#3074)

This commit is contained in:
qgarnier 2021-09-02 10:24:45 +02:00 committed by GitHub
parent 5b60960edb
commit a8edee352b
1 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ sub manage_selection {
my $decoded; my $decoded;
eval { eval {
$decoded = JSON::XS->new->utf8->decode($stdout); $decoded = JSON::XS->new->decode($self->{output}->decode($stdout));
}; };
if ($@) { if ($@) {
$self->{output}->add_option_msg(short_msg => "Cannot decode json response: $@"); $self->{output}->add_option_msg(short_msg => "Cannot decode json response: $@");