Skip to content

Commit

Permalink
fix inuse.go
Browse files Browse the repository at this point in the history
Signed-off-by: dmitry.lopatin <[email protected]>
  • Loading branch information
LopatinDmitr committed Oct 21, 2024
1 parent 88b6e5e commit 896624e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ func (h InUseHandler) Handle(ctx context.Context, vd *virtv2.VirtualDisk) (recon
}
}

println("")
println("inUseInRunningVirtualMachine=", inUseInRunningVirtualMachine)
println("inUseForCreateImage=", inUseForCreateImage)
println("")

if inUseInRunningVirtualMachine && !inUseForCreateImage {
inUseCondition.Status = metav1.ConditionTrue
inUseCondition.Reason = vdcondition.InUseInRunningVirtualMachine
Expand Down

0 comments on commit 896624e

Please sign in to comment.