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
This commit is contained in:
@@ -2562,7 +2562,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')
|
||||
|
Reference in New Issue
Block a user