summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kajinami <tkajinam@redhat.com>2021-07-15 11:25:15 +0900
committerTakashi Kajinami <tkajinam@redhat.com>2021-08-18 14:09:40 +0000
commit7dbceeceef0ca3657c72341375afc639be0b5c02 (patch)
tree3a8e6839fd6993df1a9e91b8a91341e259317d22
parent4ce01d6c49f81b6b2438549b01a89ea1b5956320 (diff)
downloadnova-7dbceeceef0ca3657c72341375afc639be0b5c02.tar.gz
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 1d3373dcf0a05d4a2c5b51fc1b74d41ec1bb1175) (cherry picked from commit 62a3fa4fff70a1d03998626406a71b7dc09da733)
-rw-r--r--nova/cmd/manage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/cmd/manage.py b/nova/cmd/manage.py
index 92c48c71e6..e704336d51 100644
--- a/nova/cmd/manage.py
+++ b/nova/cmd/manage.py
@@ -2668,7 +2668,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')