From e6732d9e744ec25bb72a2d775396b7234a928e07 Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Fri, 13 Sep 2024 10:54:21 +0200 Subject: [PATCH] Fix scheduling actions in reclaim space dialog (#2311936) We need to use the device ID here, not the name, so the backend can remove or resize the correct device. --- pyanaconda/ui/gui/spokes/lib/resize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyanaconda/ui/gui/spokes/lib/resize.py b/pyanaconda/ui/gui/spokes/lib/resize.py index 50cd16c0097..5b4b920cc0a 100644 --- a/pyanaconda/ui/gui/spokes/lib/resize.py +++ b/pyanaconda/ui/gui/spokes/lib/resize.py @@ -552,10 +552,10 @@ def _schedule_actions(self, obj): log.debug("Preserve %s.", obj.name) elif obj.action == _(SHRINK): log.debug("Shrink %s to %s.", obj.name, Size(obj.target)) - self._device_tree.ShrinkDevice(obj.name, obj.target) + self._device_tree.ShrinkDevice(obj.device_id, obj.target) elif obj.action == _(DELETE): log.debug("Remove %s.", obj.name) - self._device_tree.RemoveDevice(obj.name) + self._device_tree.RemoveDevice(obj.device_id) def on_resize_clicked(self, *args): rows = []