Skip to content

Commit

Permalink
Fix scheduling actions in reclaim space dialog (#2311936)
Browse files Browse the repository at this point in the history
We need to use the device ID here, not the name, so the backend
can remove or resize the correct device.
  • Loading branch information
vojtechtrefny committed Sep 13, 2024
1 parent 0e141c0 commit e6732d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyanaconda/ui/gui/spokes/lib/resize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit e6732d9

Please sign in to comment.