From 7f779889b6cb4b7883d8c9ae9921d0e6c030bcdd Mon Sep 17 00:00:00 2001 From: Dan Manor Date: Thu, 16 Jan 2025 13:59:44 +0200 Subject: [PATCH] NO-ISSUE: Fix typos (#7195) --- internal/bminventory/inventory.go | 2 +- internal/bminventory/inventory_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/bminventory/inventory.go b/internal/bminventory/inventory.go index 6edf681778a..05af8525852 100644 --- a/internal/bminventory/inventory.go +++ b/internal/bminventory/inventory.go @@ -2224,7 +2224,7 @@ func (b *bareMetalInventory) updateNonDhcpNetworkParams(cluster *common.Cluster, interactivity == Interactive && !reqDualStack && !network.IsLoadBalancerUserManaged(&targetConfiguration) { - err := errors.New("Setting the Machine Network CIDR is forbidden when the cluster is neither in VIP DHCP allocation mode nor using a user-managed load balance") + err := errors.New("Setting the Machine Network CIDR is forbidden when the cluster is neither in VIP DHCP allocation mode nor using a user-managed load balancer") log.WithError(err).Warnf("Set Machine Network CIDR") return common.NewApiError(http.StatusBadRequest, err) } diff --git a/internal/bminventory/inventory_test.go b/internal/bminventory/inventory_test.go index 63deb7b081c..86dbd267db0 100644 --- a/internal/bminventory/inventory_test.go +++ b/internal/bminventory/inventory_test.go @@ -4340,7 +4340,7 @@ var _ = Describe("cluster", func() { }, }) verifyApiErrorString(reply, http.StatusBadRequest, - "Setting the Machine Network CIDR is forbidden when the cluster is neither in VIP DHCP allocation mode nor using a user-managed load balance") + "Setting the Machine Network CIDR is forbidden when the cluster is neither in VIP DHCP allocation mode nor using a user-managed load balancer") }) It("Machine network CIDR in non dhcp non interactive", func() { mockClusterUpdatability(2) @@ -8315,7 +8315,7 @@ var _ = Describe("V2UpdateCluster", func() { nil, []*models.MachineNetwork{{ClusterID: clusterID, Cidr: "192.168.127.0/24"}}, swag.String("Setting the Machine Network CIDR is forbidden when the cluster is neither"+ - " in VIP DHCP allocation mode nor using a user-managed load balance"), + " in VIP DHCP allocation mode nor using a user-managed load balancer"), ), Entry("adding machine networks with user-managed load balancer should succeed",