[master][PATCH] Some partition scheme is always selected (#1017435)

Samantha N. Bueno sbueno+anaconda at redhat.com
Thu Oct 10 12:10:07 UTC 2013


Ack.

On Thu, Oct 10, 2013 at 12:04:50PM +0200, Vratislav Podzimek wrote:
> Some partition scheme is always selected in PartitionScheme spoke, so it doesn't
> need to check self._selection for being evaulated to True. Doing so causes bug
> when 0 (plain partitioning) is selected but evaluated to False.
> 
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
>  pyanaconda/ui/tui/spokes/storage.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/pyanaconda/ui/tui/spokes/storage.py b/pyanaconda/ui/tui/spokes/storage.py
> index 714c590..731fabf 100644
> --- a/pyanaconda/ui/tui/spokes/storage.py
> +++ b/pyanaconda/ui/tui/spokes/storage.py
> @@ -406,7 +406,7 @@ class PartitionSchemeSpoke(NormalTUISpoke):
>          try:
>              keyid = int(key) - 1
>          except ValueError:
> -            if key.lower() == "c" and self._selection:
> +            if key.lower() == "c":
>                  self.apply()
>                  self.close()
>                  return INPUT_PROCESSED
> -- 
> 1.7.11.7
> 
> _______________________________________________
> 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