enh(windows/local): pending-reboot mode - encoding management (#3169)

This commit is contained in:
qgarnier 2021-10-01 11:45:06 +02:00 committed by GitHub
parent 4a0c1f9e89
commit f190316b9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,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: $@");