We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
只能同步100条数据。 修改ecs.go if response.TotalCount > 0 { for i := 0; i < response.TotalCount/100+1; i++ { request.PageSize = "100" + pageNumber := fmt.Sprintf("%d", i+1) + request.PageNumber = requests.Integer(pageNumber) // 设定请求的PageNumber r, err := ecsClient.DescribeInstances(request) if err != nil { log.Errorf("查询ECS实例列表失败,%v", err) return err }
ecsList = append(ecsList, r.Instances.Instance...) } }
以上可解决ecs数量超过100同步不全的bug
The text was updated successfully, but these errors were encountered:
No branches or pull requests
只能同步100条数据。
修改ecs.go
if response.TotalCount > 0 {
for i := 0; i < response.TotalCount/100+1; i++ {
request.PageSize = "100"
+ pageNumber := fmt.Sprintf("%d", i+1)
+ request.PageNumber = requests.Integer(pageNumber) // 设定请求的PageNumber
r, err := ecsClient.DescribeInstances(request)
if err != nil {
log.Errorf("查询ECS实例列表失败,%v", err)
return err
}
以上可解决ecs数量超过100同步不全的bug
The text was updated successfully, but these errors were encountered: