Skip to content

Commit

Permalink
fix encoding on remote jobs output
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Sep 23, 2024
1 parent 322e573 commit 086fe41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Thruk/Utils/External.pm
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ sub read_job {
if($rc !~ m/^\d*$/mx) { $rc = -1; }
my($hostid, $hostname) = split(/\n/mx, $host);

$out = Thruk::Utils::Encode::decode_any($out);
$err = Thruk::Utils::Encode::decode_any($err);

$remaining = -1 unless defined $remaining;
my $job = {
'id' => $id,
Expand Down

0 comments on commit 086fe41

Please sign in to comment.