[PATCH] Mark disk 'selected' if only one present in TUI. (#975790)
Chris Lumens
clumens at redhat.com
Fri Jul 19 20:40:36 UTC 2013
> diff --git a/pyanaconda/ui/tui/spokes/storage.py b/pyanaconda/ui/tui/spokes/storage.py
> index 4dfd68c..c6f245d 100644
> --- a/pyanaconda/ui/tui/spokes/storage.py
> +++ b/pyanaconda/ui/tui/spokes/storage.py
> @@ -291,6 +291,9 @@ class StorageSpoke(NormalTUISpoke):
>
> self.disks = sorted(getDisks(self.storage.devicetree),
> key=lambda d: d.name)
> + # if only one disk is available, go ahead and mark it as selected
> + if len(self.disks) == 1:
> + self._update_disk_list(self.disks[0])
>
> self._update_summary()
> self._ready = True
Looks fine.
- Chris
More information about the anaconda-patches
mailing list