Skip to content

Commit e1e4823

Browse files
author
Roman Sysoev
committed
fix(vmrestore): change condition in runPolicy updating
Signed-off-by: Roman Sysoev <[email protected]>
1 parent 86a082f commit e1e4823

File tree

1 file changed

+1
-1
lines changed
  • images/virtualization-artifact/pkg/controller/vmrestore/internal

1 file changed

+1
-1
lines changed

images/virtualization-artifact/pkg/controller/vmrestore/internal/life_cycle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ func (h LifeCycleHandler) Handle(ctx context.Context, vmRestore *virtv2.VirtualM
342342
err = h.updateVMRunPolicy(ctx, vmObj, runPolicy)
343343
if err != nil {
344344
if errors.Is(err, restorer.ErrUpdating) {
345-
setPhaseConditionToPending(cb, &vmRestore.Status.Phase, vmrestorecondition.VirtualMachineIsNotStopped, err.Error())
345+
setPhaseConditionToPending(cb, &vmRestore.Status.Phase, vmrestorecondition.VirtualMachineResourcesAreNotReady, err.Error())
346346
return reconcile.Result{}, nil
347347
}
348348
setPhaseConditionToFailed(cb, &vmRestore.Status.Phase, err)

0 commit comments

Comments
 (0)