Skip to content

Commit

Permalink
NO-ISSUE: Fix typos (#7195)
Browse files Browse the repository at this point in the history
  • Loading branch information
danmanor authored Jan 16, 2025
1 parent 8fe7182 commit 7f77988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/bminventory/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions internal/bminventory/inventory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 7f77988

Please sign in to comment.