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 1d3373dcf0
)
This commit is contained in:
parent
b0099aa8a2
commit
62a3fa4fff
|
@ -2541,7 +2541,7 @@ class PlacementCommands(object):
|
|||
"""
|
||||
url = '/resource_providers'
|
||||
if 'uuid' in kwargs:
|
||||
url += '&uuid=%s' % kwargs['uuid']
|
||||
url += '?uuid=%s' % kwargs['uuid']
|
||||
|
||||
resp = placement.get(url, global_request_id=context.global_id,
|
||||
version='1.14')
|
||||
|
|
Loading…
Reference in New Issue