Skip to content

Commit

Permalink
Merge branch 'main' into feat/vd/allow-change-when-attached-but-not-r…
Browse files Browse the repository at this point in the history
…eady
  • Loading branch information
eofff authored Oct 21, 2024
2 parents 51abf87 + 248b2ae commit c747a0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (h LifecycleHandler) Handle(ctx context.Context, s state.VMOperationState)

// Initialize new VMOP resource: set label with vm name, set phase to Pending and all conditions to Unknown.
if changed.Status.Phase == "" {
cc.AddLabel(changed, cc.LabelVirtualMachineName, changed.Spec.VirtualMachine)
cc.AddLabel(changed, cc.LabelVirtualMachineUID, string(changed.GetUID()))
changed.Status.Phase = virtv2.VMOPPhasePending
// Add all conditions in unknown state.
conditions.SetCondition(
Expand Down

0 comments on commit c747a0f

Please sign in to comment.