[PATCH] Mark disk 'selected' if only one present in TUI. (#975790)

Samantha N. Bueno sbueno+anaconda at redhat.com
Fri Jul 19 20:00:09 UTC 2013


Forgot: this should get pulled into rhel7-branch as well.

On Fri, Jul 19, 2013 at 03:58:48PM -0400, Samantha N. Bueno wrote:
> Resolves: rhbz#975790
> ---
>  pyanaconda/ui/tui/spokes/storage.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> 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
> -- 
> 1.8.3.1
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches


More information about the anaconda-patches mailing list