Skip to content

Commit

Permalink
Fix update issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLike committed Jul 3, 2019
1 parent cebe8bb commit d1ef272
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controllers/job/job_controller_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ func (cc *Controller) createJob(jobInfo *apis.JobInfo, updateStatus state.Update
job := jobInfo.Job.DeepCopy()
glog.Infof("Current Version is: %d of job: %s/%s", job.Status.Version, job.Namespace, job.Name)

if job, err := cc.initJobStatus(job); err != nil {
job, err := cc.initJobStatus(job)
if err != nil {
cc.recorder.Event(job, v1.EventTypeWarning, string(vkv1.JobStatusError),
fmt.Sprintf("Failed to initialize job status, err: %v", err))
return err
Expand Down

0 comments on commit d1ef272

Please sign in to comment.