TheSushiChef opened a new issue #1360: list_nodes on GCE Projects Only Returns 
500 Results
URL: https://github.com/apache/libcloud/issues/1360
 
 
   ## Summary
   
   When running list_nodes against a GCE environment that has greater than 500 
instances, only the top 500 results will be returned.
   
   ## Detailed Information
   
   Using libcloud 2.6.0, running list_nodes using the GCE Provider will only 
return the top 500 results. This is similar to issue #1203 where the list_nodes 
function is running self.connection.request rather than 
self.connection.request_aggregated_items.
   
   I believe changing lines 19-23 of the list_nodes function to something like 
this will fix the issue:
   
   ```
   if zone is None:
           response = self.connection.request_aggregated_items('instances')
       else:
           request = '/zones/%s/instances' % (zone.name)
           response = self.connection.request(request, method='GET').object
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to