Skip to content

Commit d88044d

Browse files
asm582openshift-merge-robot
authored andcommitted
fix unit tests
1 parent 2310bff commit d88044d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/queuejob/queuejob_controller_ex.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1706,7 +1706,7 @@ func (cc *XController) updateQueueJob(oldObj, newObj interface{}) {
17061706
latestAw, exists, err := cc.appwrapperInformer.Informer().GetStore().GetByKey(key)
17071707
if err == nil && exists {
17081708
// Enqueue the latest copy of the AW.
1709-
if (newQJ.Status.State != arbv1.AppWrapperStateCompleted || newQJ.Status.State != arbv1.AppWrapperStateFailed) && hasCompletionStatus {
1709+
if (newQJ.Status.State != arbv1.AppWrapperStateCompleted && newQJ.Status.State != arbv1.AppWrapperStateFailed) && hasCompletionStatus {
17101710
cc.UpdateQueueJobs(latestAw.(*arbv1.AppWrapper))
17111711
klog.V(2).Infof("[Informer-updateQJ] Finished requeing AW to determine completion status")
17121712
}

0 commit comments

Comments
 (0)