Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxuzhonghu authored Apr 18, 2019
1 parent 987df41 commit 22879b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/job/job_controller_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (cc *Controller) killJob(jobInfo *apis.JobInfo, nextState state.NextStateFn
continue
}

if err := cc.deleteJobPod(job.Name, pod); err != nil {
if err := cc.deleteJobPod(job.Name, pod); err == nil {
terminating++
} else {
errs = append(errs, err)
Expand Down

0 comments on commit 22879b0

Please sign in to comment.