Fix managing/unmanaging subclouds
Change that were done in https://opendev.org/starlingx/distcloud-client
/commit/dd05eccb0826ad4047201d361abea20b7a788bf5 changed the
dcmanagerclient update_subcloud API and caused the call to the API
from Horizon to break.
Closes-Bug: 1888301
Change-Id: Ia009f625a402c5480e669f61d1630f7dc3ba589f
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
(cherry picked from commit 959427c8bd
)
This commit is contained in:
parent
1a4a8e8425
commit
309913c07f
|
@ -68,7 +68,7 @@ def subcloud_create(request, data):
|
|||
|
||||
def subcloud_update(request, subcloud_id, changes):
|
||||
response = dcmanagerclient(request).subcloud_manager.update_subcloud(
|
||||
subcloud_id, **changes.get('updated'))
|
||||
subcloud_id, data=changes.get('updated'))
|
||||
# Updating returns a list of subclouds for some reason
|
||||
return [Subcloud(subcloud) for subcloud in response]
|
||||
|
||||
|
|
Loading…
Reference in New Issue