libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quent...@apache.org
Subject [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
Date Tue, 01 May 2018 03:27:45 GMT
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 <quentinp@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 <lferlin@mailjet.com>
Authored: Thu Apr 26 15:22:17 2018 +0200
Committer: Quentin Pradet <quentinp@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:


Mime
View raw message