Skip to content

Commit 54d4f5c

Browse files
committed
Fix misspells
1 parent cada92b commit 54d4f5c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

controllers/utils/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func getKubeadmControlPlaneFromCAPIMachine(
8989
// IsOwnerDeleted returns a boolean if the owner of the CAPI machine has been deleted.
9090
func IsOwnerDeleted(ctx context.Context, client clientPkg.Client, capiMachine *capiv1.Machine) (bool, error) {
9191
if util.IsControlPlaneMachine(capiMachine) {
92-
// The controlplane sticks around after deletion pending the deletion of its machiens.
92+
// The controlplane sticks around after deletion pending the deletion of its machines.
9393
// As such, need to check the deletion timestamp thereof.
9494
if cp, err := getKubeadmControlPlaneFromCAPIMachine(ctx, client, capiMachine); cp != nil && cp.DeletionTimestamp == nil {
9595
return false, nil

pkg/cloud/instance_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ var _ = Describe("Instance", func() {
131131
Should(MatchError(unknownErrorMessage))
132132
})
133133

134-
It("returns errors occuring while fetching sevice offering information", func() {
134+
It("returns errors occurring while fetching service offering information", func() {
135135
expectVMNotFound()
136136
sos.EXPECT().GetServiceOfferingID(dummies.CSMachine1.Spec.Offering.Name).Return("", -1, unknownError)
137137
Ω(client.GetOrCreateVMInstance(dummies.CSMachine1, dummies.CAPIMachine, dummies.CSCluster, "")).
138138
ShouldNot(Succeed())
139139
})
140140

141-
It("returns errors if more than one sevice offering found", func() {
141+
It("returns errors if more than one service offering found", func() {
142142
expectVMNotFound()
143143
sos.EXPECT().GetServiceOfferingID(dummies.CSMachine1.Spec.Offering.Name).Return("", 2, nil)
144144
Ω(client.GetOrCreateVMInstance(dummies.CSMachine1, dummies.CAPIMachine, dummies.CSCluster, "")).

pkg/cloud/network.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func (c *client) AssociatePublicIPAddress(csCluster *capcv1.CloudStackCluster) (
257257
setIfNotEmpty(csCluster.Status.DomainID, p.SetDomainid)
258258
if _, err := c.cs.Address.AssociateIpAddress(p); err != nil {
259259
return errors.Wrapf(err,
260-
"error encountered while associating public IP address with ID: %s to netowrk with ID: %s",
260+
"error encountered while associating public IP address with ID: %s to network with ID: %s",
261261
publicAddress.Id, zoneStatus.Network.ID)
262262
}
263263
if err := c.AddClusterTag(ResourceTypeIPAddress, publicAddress.Id, csCluster); err != nil {

0 commit comments

Comments
 (0)