forked from lix-project/hydra
Handle case where jobset has no defined errormsg for api/jobsets
This commit is contained in:
parent
5c0c7d52a0
commit
de24771a8e
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ sub jobsetToHash {
|
||||||
triggertime => $jobset->triggertime,
|
triggertime => $jobset->triggertime,
|
||||||
fetcherrormsg => $jobset->fetcherrormsg,
|
fetcherrormsg => $jobset->fetcherrormsg,
|
||||||
errortime => $jobset->errortime,
|
errortime => $jobset->errortime,
|
||||||
haserrormsg => $jobset->errormsg eq "" ? JSON::false : JSON::true
|
haserrormsg => defined($jobset->errormsg) ? ($jobset->errormsg eq "" ? JSON::false : JSON::true) : JSON::false
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue