From 16560b2237bb6c5024f81e809f50bf31373d3add Mon Sep 17 00:00:00 2001 From: Yaroslav Borbat <86148689+yaroslavborbat@users.noreply.github.com> Date: Tue, 17 Dec 2024 21:36:28 +0300 Subject: [PATCH] Update images/virtualization-artifact/pkg/controller/moduleconfig/reduce_cidrs_validator.go Co-authored-by: Ivan Mikheykin Signed-off-by: Yaroslav Borbat <86148689+yaroslavborbat@users.noreply.github.com> --- .../pkg/controller/moduleconfig/reduce_cidrs_validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/virtualization-artifact/pkg/controller/moduleconfig/reduce_cidrs_validator.go b/images/virtualization-artifact/pkg/controller/moduleconfig/reduce_cidrs_validator.go index 2ce87f44c..6b46c9b40 100644 --- a/images/virtualization-artifact/pkg/controller/moduleconfig/reduce_cidrs_validator.go +++ b/images/virtualization-artifact/pkg/controller/moduleconfig/reduce_cidrs_validator.go @@ -79,7 +79,7 @@ loop: } for _, CIDR := range validateCIDRs { if CIDR.Contains(leaseIP) { - return nil, fmt.Errorf("CIDR %q is in use by one or more IP addresses", CIDR) + return nil, fmt.Errorf("virtualMachineCIDRs item %q can't be removed: VirtualMachineIPAddressLease/%s holds IP address from this network", CIDR, lease.GetName()) } } }