mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
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()
|
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
|
return groups, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user