diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py index d457f7b..b0281d8 100644 --- a/pyanaconda/ui/gui/spokes/custom.py +++ b/pyanaconda/ui/gui/spokes/custom.py @@ -1404,7 +1404,10 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): log.debug("target size: %s" % device.targetSize)
# update the selector's size property
selectorFromDevice(device, selector=selector)
for s in self._accordion.allSelectors:
if s._device == device:
_size = Size(spec="%f mb" % device.size)
s.size = str(_size).upper() # update size props of all btrfs devices' selectors self._update_selectors()
I am starting to feel like we need some method to handle the for/if construct up there. We use it in a couple other places.
Also, you can use size_str out of pyanaconda/ui/lib/disks.py for this.
- Chris