Repository: libcloud Updated Branches: refs/heads/trunk 1b5b71075 -> bee673094
Modified the way '_find_zone_or_region' gets data from the 'instances.aggregatedList' api by using the method 'request_aggregated_items' which correctly paginates Signed-off-by: Quentin Pradet <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/e15d3a18 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/e15d3a18 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/e15d3a18 Branch: refs/heads/trunk Commit: e15d3a18bd73cd9e7149cdcc82370b78648c75dc Parents: 1b5b710 Author: Léo Ferlin-Sutton <[email protected]> Authored: Thu Apr 26 15:22:17 2018 +0200 Committer: Quentin Pradet <[email protected]> Committed: Tue May 1 07:25:07 2018 +0400 ---------------------------------------------------------------------- libcloud/compute/drivers/gce.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/e15d3a18/libcloud/compute/drivers/gce.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py index 80b6aa1..484022e 100644 --- a/libcloud/compute/drivers/gce.py +++ b/libcloud/compute/drivers/gce.py @@ -7885,8 +7885,7 @@ class GCENodeDriver(NodeDriver): rz = 'zone' rz_name = None res_name = res_name or res_type - request = '/aggregated/%s' % (res_type) - res_list = self.connection.request(request).object + res_list = self.connection.request_aggregated_items(res_type) for k, v in res_list['items'].items(): for res in v.get(res_type, []): if res['name'] == name:
