Fix pagination key detection
The assignment of the first detection test is wrongly written as a boolean comparison. Change-Id: Ib3dc07c47b45fba54f0be727e9991f4669007184
This commit is contained in:
parent
445a5491db
commit
aa82e3bba9
|
@ -1342,7 +1342,7 @@ class Resource(dict):
|
||||||
|
|
||||||
if not pagination_key and 'links' in data:
|
if not pagination_key and 'links' in data:
|
||||||
# api-wg guidelines are for a links dict in the main body
|
# api-wg guidelines are for a links dict in the main body
|
||||||
pagination_key == 'links'
|
pagination_key = 'links'
|
||||||
if not pagination_key and cls.resources_key:
|
if not pagination_key and cls.resources_key:
|
||||||
# Nova has a {key}_links dict in the main body
|
# Nova has a {key}_links dict in the main body
|
||||||
pagination_key = '{key}_links'.format(key=cls.resources_key)
|
pagination_key = '{key}_links'.format(key=cls.resources_key)
|
||||||
|
|
Loading…
Reference in New Issue