From 309913c07f17c8971532032f5ffc14238f462f9e Mon Sep 17 00:00:00 2001 From: Kristine Bujold Date: Mon, 20 Jul 2020 15:38:38 -0400 Subject: [PATCH] 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 (cherry picked from commit 959427c8bd1c8d074f46ba5be310850e2ee817ae) --- .../starlingx-dashboard/starlingx_dashboard/api/dc_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/api/dc_manager.py b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/api/dc_manager.py index bc7504ff..d841aeb3 100755 --- a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/api/dc_manager.py +++ b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/api/dc_manager.py @@ -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]