diff --git a/lib/OpenQA/Schema/Result/Jobs.pm b/lib/OpenQA/Schema/Result/Jobs.pm index fa59f6e3d0d..0e3f112e3c5 100644 --- a/lib/OpenQA/Schema/Result/Jobs.pm +++ b/lib/OpenQA/Schema/Result/Jobs.pm @@ -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) {