You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by qu...@apache.org on 2018/05/01 03:27:45 UTC

[1/2] libcloud git commit: Modified the way '_find_zone_or_region' gets data from the 'instances.aggregatedList' api by using the method 'request_aggregated_items' which correctly paginates

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 <qu...@apache.org>


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 <lf...@mailjet.com>
Authored: Thu Apr 26 15:22:17 2018 +0200
Committer: Quentin Pradet <qu...@apache.org>
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:


[2/2] libcloud git commit: Add changes for #1203

Posted by qu...@apache.org.
Add changes for #1203


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/bee67309
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/bee67309
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/bee67309

Branch: refs/heads/trunk
Commit: bee6730948706979d6dcc1492405a6a100ab89e9
Parents: e15d3a1
Author: Quentin Pradet <qu...@apache.org>
Authored: Tue May 1 07:27:01 2018 +0400
Committer: Quentin Pradet <qu...@apache.org>
Committed: Tue May 1 07:27:01 2018 +0400

----------------------------------------------------------------------
 CHANGES.rst | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/bee67309/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index b979c56..8a8787a 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -45,6 +45,9 @@ Compute
 - [GCE] Update public image projects list (LIBCLOUD-961, GITHUB-1143)
   [Sean Marlow]
 
+- [GCE] Fix _find_zone_or_region for >500 instances (GITHUB-1203)
+  [Léo Ferlin-Sutton]
+
 - [OpenStack] Implement Glance Image API v2 (GITHUB-1151)
   [Rick van de Loo]