mirror of https://github.com/docker/compose.git
List pages of resource groups if entire list is not fetch in first page
This commit is contained in:
parent
f931ba3fca
commit
aeb6d2c7c6
|
@ -65,6 +65,16 @@ func (mgt aciResourceGroupHelperImpl) ListGroups(ctx context.Context, subscripti
|
|||
}
|
||||
|
||||
groups := groupResponse.Values()
|
||||
|
||||
for groupResponse.NotDone() {
|
||||
err = groupResponse.NextWithContext(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
newValues := groupResponse.Values()
|
||||
groups = append(groups, newValues...)
|
||||
}
|
||||
|
||||
return groups, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue