vdloo commented on pull request #1467:
URL: https://github.com/apache/libcloud/pull/1467#issuecomment-644580230


   yup, works fine:
   ```
   In [2]: len(conn.list_images())                                              
                              
   Out[2]: 1113
   ```
   
   and with `PAGINATION_LIMIT = 10`:
   ```
   In [3]: conn.list_images()                                                   
                              
   ---------------------------------------------------------------------------
   OpenStackException                        Traceback (most recent call last)
   <ipython-input-3-6e1a5f4cb5e9> in <module>
   ----> 1 conn.list_images()
   
   
~/.virtualenvs/libcloudtest/src/apache-libcloud/libcloud/compute/drivers/openstack.py
 in list_images(self, location, ex_only_active)
      2881             path='/v2/images',
      2882             request_method=self.image_connection.request,
   -> 2883             response_key='images')
      2884 
      2885         images = []
   
   
~/.virtualenvs/libcloudtest/src/apache-libcloud/libcloud/compute/drivers/openstack.py
 in _paginated_request_next(self, path, request_method, response_key)
      2850                     'looping next target for pagination!' % (
      2851                         path, PAGINATION_LIMIT
   -> 2852                     ), None
      2853                 )
      2854 
   
   OpenStackException: 'Pagination limit reached for 
/v2/images?marker=1151542d-017c-47dd-94d2-f0550bbbc626, the limit is 10. This 
might indicate that your API is returning a looping next target for pagination!'
   ```
   


----------------------------------------------------------------
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]


Reply via email to