Skip to content

Commit 1f4081e

Browse files
committed
pkg awsutils
1 parent b649f35 commit 1f4081e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/awsutils/awsutils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ func (cache *EC2InstanceMetadataCache) getENISubnetID(ctx context.Context, eniID
575575

576576
// Helper function to check if an ENI is in a secondary subnet
577577
func (cache *EC2InstanceMetadataCache) isENIInSecondarySubnet(ctx context.Context, eniID string) bool {
578-
eniDetails, err := cache.getENISubnetID(ctx, eniID)
579-
return err == nil && eniDetails != cache.subnetID
578+
eniSubnetID, err := cache.getENISubnetID(ctx, eniID)
579+
return err == nil && eniSubnetID != cache.subnetID
580580
}
581581

582582
// Helper function to get ENIs that match specific criteria

0 commit comments

Comments
 (0)