Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Jont828 committed Dec 9, 2021
1 parent 7415718 commit 21236d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion azure/scope/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ func (m *MachineScope) AvailabilitySetSpec() (azure.ResourceSpecGetter, error) {
asSKU := m.cache.availabilitySetSKU
faultDomainCountStr, ok := asSKU.GetCapability(resourceskus.MaximumPlatformFaultDomainCount)
if !ok {
return nil, errors.Errorf("cannot find capability %s sku %s", resourceskus.MaximumPlatformFaultDomainCount, asSKU.Name)
return nil, errors.Errorf("cannot find capability %s sku %s", resourceskus.MaximumPlatformFaultDomainCount, *asSKU.Name)
}

faultDomainCount, err := strconv.ParseUint(faultDomainCountStr, 10, 32)
Expand Down
1 change: 0 additions & 1 deletion azure/services/availabilitysets/availabilitysets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/to"

// "github.com/Azure/go-autorest/autorest/to"
"github.com/golang/mock/gomock"
. "github.com/onsi/gomega"
infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
Expand Down
4 changes: 2 additions & 2 deletions azure/services/availabilitysets/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ func newAvailabilitySetsClient(subscriptionID string, baseURI string, authorizer
}

// Get gets an availability set.
func (a *AzureClient) Get(ctx context.Context, spec azure.ResourceSpecGetter) (interface{}, error) {
func (ac *AzureClient) Get(ctx context.Context, spec azure.ResourceSpecGetter) (interface{}, error) {
ctx, _, done := tele.StartSpanWithLogger(ctx, "availabilitysets.AzureClient.Get")
defer done()

return a.availabilitySets.Get(ctx, spec.ResourceGroupName(), spec.ResourceName())
return ac.availabilitySets.Get(ctx, spec.ResourceGroupName(), spec.ResourceName())
}

// CreateOrUpdateAsync creates or updates a availability set asynchronously.
Expand Down

0 comments on commit 21236d1

Please sign in to comment.