forked from lix-project/hydra
BuildDiff: ensure buildstatus is defined
buildstatus won't be defined if e.g. a build is queued but none have failed.
This commit is contained in:
parent
92bd0fae7d
commit
9b12a88d81
|
@ -71,7 +71,7 @@ sub buildDiff {
|
|||
} else {
|
||||
push @{$ret->{new}}, $build if !$found;
|
||||
}
|
||||
if ($build->buildstatus != 0) {
|
||||
if (defined $build->buildstatus && $build->buildstatus != 0) {
|
||||
push @{$ret->{failed}}, $build;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue