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:
Takashi Kajinami 2021-07-15 11:25:15 +09:00
parent b0099aa8a2
commit 62a3fa4fff
1 changed files with 1 additions and 1 deletions

View File

@ -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')