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:
Johannes Kulik 2019-01-07 15:08:06 +01:00
parent 445a5491db
commit aa82e3bba9
1 changed files with 1 additions and 1 deletions

View File

@ -1342,7 +1342,7 @@ class Resource(dict):
if not pagination_key and 'links' in data:
# 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:
# Nova has a {key}_links dict in the main body
pagination_key = '{key}_links'.format(key=cls.resources_key)