Skip to content

Commit

Permalink
Merge pull request #6034 from perlpunk/fix-boolean
Browse files Browse the repository at this point in the history
Return 0/1 explicitly as the client expects it
  • Loading branch information
mergify[bot] authored Oct 29, 2024
2 parents da5fbe6 + bc927f2 commit a8824eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/OpenQA/Schema/Result/Jobs.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2233,7 +2233,12 @@ sub dependencies ($self, $children_list = undef, $parents_list = undef) {
push(@{$children{$s->to_string}}, $s->child_job_id);
}

return {parents => \%parents, has_parents => $has_parents, parents_ok => $parents_ok, children => \%children};
return {
parents => \%parents,
has_parents => $has_parents,
parents_ok => ($parents_ok ? 1 : 0),
children => \%children,
};
}

sub result_stats ($self) {
Expand Down

0 comments on commit a8824eb

Please sign in to comment.