summaryrefslogtreecommitdiff
path: root/ironic/api/controllers/v1/allocation.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-10-23 12:29:35 +0000
committerGerrit Code Review <review@openstack.org>2019-10-23 12:29:35 +0000
commit35ded83a91b6889123e519a8e1833926fa33080c (patch)
treef811a1cb41b289af16d38cb87a05962e663c14e8 /ironic/api/controllers/v1/allocation.py
parentf7caa625c72801e3c2b53be9e7014ef3f968501f (diff)
parent0785477a6304bf9280dde503cdd18a467ddced13 (diff)
downloadironic-12.1.3.tar.gz
Merge "Do not ignore 'fields' query parameter when building next url" into stable/stein12.1.3
Diffstat (limited to 'ironic/api/controllers/v1/allocation.py')
-rw-r--r--ironic/api/controllers/v1/allocation.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ironic/api/controllers/v1/allocation.py b/ironic/api/controllers/v1/allocation.py
index d461f6d4f..0ec07ba96 100644
--- a/ironic/api/controllers/v1/allocation.py
+++ b/ironic/api/controllers/v1/allocation.py
@@ -181,7 +181,8 @@ class AllocationCollection(collection.Collection):
Allocation.convert_with_links(p, fields=fields, sanitize=False)
for p in rpc_allocations
]
- collection.next = collection.get_next(limit, url=url, **kwargs)
+ collection.next = collection.get_next(limit, url=url, fields=fields,
+ **kwargs)
for item in collection.allocations:
item.sanitize(fields=fields)