Skip to content

Commit

Permalink
Merge pull request #564 from l1b0k/fix/api
Browse files Browse the repository at this point in the history
fix: duplicated DescribeNetworkInterfaces api calls
  • Loading branch information
BSWANG authored Jan 24, 2024
2 parents 864f074 + 3e2e811 commit 4e63320
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/aliyun/client/ecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ func (a *OpenAPI) DescribeNetworkInterface(ctx context.Context, vpcID string, en
result = append(result, FromDescribeResp(&r))
}

if len(resp.NetworkInterfaceSets.NetworkInterfaceSet) < maxSinglePageSize {
break
}
if resp.NextToken == "" {
break
}
Expand Down

0 comments on commit 4e63320

Please sign in to comment.