File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
images/virtualization-artifact/pkg/controller/vmop/restore/internal Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -199,11 +199,9 @@ func (h LifecycleHandler) syncOperationComplete(changed *v1alpha2.VirtualMachine
199
199
return nil
200
200
}
201
201
202
- // Keep InProgress phase as-is (InProgress), set complete condition to false.
203
- reason := svcOp .GetInProgressReason ()
204
202
conditions .SetCondition (
205
203
completedCond .
206
- Reason (reason ).
204
+ Reason (vmopcondition . ReasonRestoreOperationInProgress ).
207
205
Status (metav1 .ConditionFalse ).
208
206
Message ("Wait until operation completed" ),
209
207
& changed .Status .Conditions )
Original file line number Diff line number Diff line change @@ -64,10 +64,6 @@ func (o RestoreOperation) IsApplicableForRunPolicy(runPolicy virtv2.RunPolicy) b
64
64
return runPolicy == virtv2 .ManualPolicy || runPolicy == virtv2 .AlwaysOnUnlessStoppedManually || runPolicy == virtv2 .AlwaysOffPolicy
65
65
}
66
66
67
- func (o RestoreOperation ) GetInProgressReason () vmopcondition.ReasonCompleted {
68
- return vmopcondition .ReasonCompleted (vmopcondition .ReasonRestoreOperationInProgress )
69
- }
70
-
71
67
func (o RestoreOperation ) IsComplete () (bool , string , error ) {
72
68
c , ok := conditions .GetCondition (vmopcondition .TypeRestoreCompleted , o .vmop .Status .Conditions )
73
69
return ok && c .Status == metav1 .ConditionTrue , "" , nil
You can’t perform that action at this time.
0 commit comments