Skip to content

Commit

Permalink
Return empty in error
Browse files Browse the repository at this point in the history
  • Loading branch information
johnugeorge committed Feb 20, 2019
1 parent c60631e commit c9f87a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/studyjob/studyjob_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ func (r *ReconcileStudyJobController) getJobWorkerStatus(ns string, wid string,
jobStatus := commonv1beta1.JobStatus{}
err := runtime.DefaultUnstructuredConverter.FromUnstructured(statusMap, &jobStatus)
if err != nil {
log.Printf("Error in converting unstructured to status:%v ", err)
log.Printf("Error in converting unstructured to status: %v ", err)
return WorkerStatus{}
}
if len(jobStatus.Conditions) > 0 {
lc := jobStatus.Conditions[len(jobStatus.Conditions)-1]
Expand Down

0 comments on commit c9f87a4

Please sign in to comment.