diff options
author | Takashi Kajinami <tkajinam@redhat.com> | 2021-07-15 11:25:15 +0900 |
---|---|---|
committer | Takashi Kajinami <tkajinam@redhat.com> | 2021-08-18 14:09:40 +0000 |
commit | 7dbceeceef0ca3657c72341375afc639be0b5c02 (patch) | |
tree | 3a8e6839fd6993df1a9e91b8a91341e259317d22 | |
parent | 4ce01d6c49f81b6b2438549b01a89ea1b5956320 (diff) | |
download | nova-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.py | 2 |
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') |