Skip to content

Commit 7dbceec

Browse files
committed
Fix request path to query a resource provider by uuid
To query a resource provider by uuid, request path should look like /resource_providers?uuid=<uuid> istead of /resource_providers&uuid=<uuid> This change fixes the wrong path so that "nova-manage placement audit" command can look up the target resource provider properly. Closes-Bug: #1936278 Change-Id: I2ae7e9782316e3662e4e51e3f5ba0ef597bf281b (cherry picked from commit 1d3373d) (cherry picked from commit 62a3fa4)
1 parent 4ce01d6 commit 7dbceec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nova/cmd/manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2668,7 +2668,7 @@ def _get_resource_providers(self, context, placement, **kwargs):
26682668
"""
26692669
url = '/resource_providers'
26702670
if 'uuid' in kwargs:
2671-
url += '&uuid=%s' % kwargs['uuid']
2671+
url += '?uuid=%s' % kwargs['uuid']
26722672

26732673
resp = placement.get(url, global_request_id=context.global_id,
26742674
version='1.14')

0 commit comments

Comments
 (0)