Update sj on UpdateStatus return value

This commit is contained in:
Janet Kuo 2016-08-24 14:54:48 -07:00
parent 1952986a34
commit 4bda41905c

View File

@ -40,7 +40,7 @@ type realSJControl struct {
var _ sjControlInterface = &realSJControl{}
func (c *realSJControl) UpdateStatus(sj *batch.ScheduledJob) error {
_, err := c.KubeClient.Batch().ScheduledJobs(sj.Namespace).UpdateStatus(sj)
sj, err := c.KubeClient.Batch().ScheduledJobs(sj.Namespace).UpdateStatus(sj)
return err
}