Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
David Morrison committed Nov 30, 2021
1 parent ffdcbeb commit d09a4b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
const (
scaleToZeroSupported = true
placeholderInstanceNamePrefix = "i-placeholder"
placeholderUnfulfillableStatus = "placeholder-cannot-be-fullfilled"
placeholderUnfulfillableStatus = "placeholder-cannot-be-fulfilled"
)

type asgCache struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func TestCreatePlaceholders(t *testing.T) {
ec2I: nil,
},
registeredAsgs: map[AwsRef]*asg{
registeredAsgRef: &asg{
registeredAsgRef: {
AwsRef: registeredAsgRef,
lastUpdateTime: tc.groupLastUpdateTime,
},
Expand Down
1 change: 1 addition & 0 deletions cluster-autoscaler/cloudprovider/aws/aws_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ func (m *AwsManager) GetAsgNodes(ref AwsRef) ([]AwsInstanceRef, error) {
return m.asgCache.InstancesByAsg(ref)
}

// GetInstanceStatus returns the status of ASG nodes
func (m *AwsManager) GetInstanceStatus(ref AwsInstanceRef) (*string, error) {
return m.asgCache.InstanceStatus(ref)
}
Expand Down

0 comments on commit d09a4b9

Please sign in to comment.