From 896624ea4dddd561b8543a496aac86df00ceb423 Mon Sep 17 00:00:00 2001 From: "dmitry.lopatin" Date: Mon, 21 Oct 2024 10:03:02 +0300 Subject: [PATCH] fix inuse.go Signed-off-by: dmitry.lopatin --- .../pkg/controller/vd/internal/inuse.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/images/virtualization-artifact/pkg/controller/vd/internal/inuse.go b/images/virtualization-artifact/pkg/controller/vd/internal/inuse.go index 2cf0d53a9..21cd6ae4e 100644 --- a/images/virtualization-artifact/pkg/controller/vd/internal/inuse.go +++ b/images/virtualization-artifact/pkg/controller/vd/internal/inuse.go @@ -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