Fix an error when the log string is empty (#1058)
This commit is contained in:
@@ -279,7 +279,7 @@ sub jq_complete {
|
||||
->search({ job => $job->id }, { for => 'update' })
|
||||
->update({
|
||||
status => $job->status,
|
||||
log => $job->log,
|
||||
log => (ref($job->log) eq ref('')) ? $job->log : '',
|
||||
started => $job->started,
|
||||
finished => $job->finished,
|
||||
(($job->action eq 'hook') ? (subaction => $job->subaction) : ()),
|
||||
|
||||
Reference in New Issue
Block a user