Update aws-sdk-go dependency to v1.28.2
This commit is contained in:
10
vendor/github.com/aws/aws-sdk-go/service/elb/api.go
generated
vendored
10
vendor/github.com/aws/aws-sdk-go/service/elb/api.go
generated
vendored
@@ -1775,7 +1775,7 @@ func (c *ELB) DescribeLoadBalancersWithContext(ctx aws.Context, input *DescribeL
|
||||
// // Example iterating over at most 3 pages of a DescribeLoadBalancers operation.
|
||||
// pageNum := 0
|
||||
// err := client.DescribeLoadBalancersPages(params,
|
||||
// func(page *DescribeLoadBalancersOutput, lastPage bool) bool {
|
||||
// func(page *elb.DescribeLoadBalancersOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
@@ -1807,10 +1807,12 @@ func (c *ELB) DescribeLoadBalancersPagesWithContext(ctx aws.Context, input *Desc
|
||||
},
|
||||
}
|
||||
|
||||
cont := true
|
||||
for p.Next() && cont {
|
||||
cont = fn(p.Page().(*DescribeLoadBalancersOutput), !p.HasNextPage())
|
||||
for p.Next() {
|
||||
if !fn(p.Page().(*DescribeLoadBalancersOutput), !p.HasNextPage()) {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
return p.Err()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user