Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen6585 committed Aug 31, 2023
1 parent 36407e4 commit 39cfcae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions pkg/awsutils/awsutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ type NetworkCard struct {
// max number of interfaces supported per card
MaximumNetworkInterfaces int64
// the index of current card
NetworkCardIndex int64
NetworkPerformance string
NetworkCardIndex int64
}

// InstanceTypeLimits keeps track of limits for an instance type
Expand Down Expand Up @@ -1431,7 +1430,6 @@ func (cache *EC2InstanceMetadataCache) FetchInstanceTypeLimits() error {
networkCards[idx] = NetworkCard{
MaximumNetworkInterfaces: *info.NetworkInfo.NetworkCards[idx].MaximumNetworkInterfaces,
NetworkCardIndex: *info.NetworkInfo.NetworkCards[idx].NetworkCardIndex,
NetworkPerformance: *info.NetworkInfo.NetworkCards[idx].NetworkPerformance,
}
}
//Not checking for empty hypervisorType since have seen certain instances not getting this filled.
Expand Down
1 change: 0 additions & 1 deletion scripts/gen_vpc_ip_limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ func describeInstanceTypes(region string, eniLimitMap map[string]awsutils.Instan
networkCards[idx] = awsutils.NetworkCard{
MaximumNetworkInterfaces: *info.NetworkInfo.NetworkCards[idx].MaximumNetworkInterfaces,
NetworkCardIndex: *info.NetworkInfo.NetworkCards[idx].NetworkCardIndex,
NetworkPerformance: *info.NetworkInfo.NetworkCards[idx].NetworkPerformance,
}
}
if instanceType != "" && eniLimit > 0 && ipv4Limit > 0 {
Expand Down

0 comments on commit 39cfcae

Please sign in to comment.