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:10:09 +0000
commitd0d7155457a0a92fdd28031665034c0033239a4b (patch)
treebec1e1eb1ad23540a54111d753a721a51dfed149
parent4ab651f3df2559c79206dce81887e0965cdc9689 (diff)
downloadnova-d0d7155457a0a92fdd28031665034c0033239a4b.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) (cherry picked from commit 7dbceeceef0ca3657c72341375afc639be0b5c02)
-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 2e4e135ee0..cbf6cb5e45 100644
--- a/nova/cmd/manage.py
+++ b/nova/cmd/manage.py
@@ -2652,7 +2652,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')