Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: yaroslavborbat <[email protected]>
  • Loading branch information
yaroslavborbat committed Jun 13, 2024
1 parent f27d8b4 commit cc4cece
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (r *Reconciler) UpdateStatus(_ context.Context, _ reconcile.Request, state
vmopStatus.FailureMessage = result.Message()
}
}
if state.IsInProgress() && r.IsCompleted(state.VMOP.Current().Spec.Type, state.VM.Status.Phase) {
if !state.VmIsEmpty() && state.IsInProgress() && r.IsCompleted(state.VMOP.Current().Spec.Type, state.VM.Status.Phase) {
vmopStatus.Phase = virtv2.VMOPPhaseCompleted
}
state.VMOP.Changed().Status = *vmopStatus
Expand Down

0 comments on commit cc4cece

Please sign in to comment.