python-openstackclient/openstackclient
Pavlo Shchelokovskyy c79de8a90b Paginate over usage list to return all usages
since nova api 2.40 the os-simple-tenant-usage API supports pagination
and will by default return a number of entities configured internally in
Nova.
This means that when there are many enough projects,
the single call to usage.list() will not return usages for all projects.

This patch effectively copy-pastes the logic to paginate over usage list
results from novaclient/v2/shell.py code.

Change-Id: I1b639fe386b7b7db3223f6965495094b9d51533a
Story: #2005099
Task: #29713
2019-02-28 20:27:04 +02:00
..
api Merge "trivial: remove commented-out code" 2018-12-30 14:30:28 +00:00
common Make use of keystoneauth service-type filtering for versions 2018-10-19 07:55:41 -05:00
compute Paginate over usage list to return all usages 2019-02-28 20:27:04 +02:00
identity Merge "Modify the help message for 'registered limit set'" 2018-12-18 07:17:25 +00:00
image Fix help message of image add project 2019-02-19 12:49:18 +01:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Add floating IP filter to floating IP list command 2019-01-14 10:27:07 +01:00
object Allow objects to be streamed to stdout 2017-07-05 20:08:18 -03:00
tests Paginate over usage list to return all usages 2019-02-28 20:27:04 +02:00
volume Add volume backup import/export commands 2018-11-10 02:11:04 -06:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Useless line of code in shell.py 2017-09-08 06:28:15 +00:00