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",