[PATCH 3/3] Allow password spoke to be exited without password (#1004931)

Vratislav Podzimek vpodzime at redhat.com
Thu Oct 3 08:05:40 UTC 2013


On Wed, 2013-10-02 at 17:22 -0400, David Shea wrote:
> This makes the behavior of the root password spoke similar to that of
> the user spoke, in that you can enter it, do nothing, and hit "Done" to
> return to the progress hub.
> ---
>  pyanaconda/ui/gui/spokes/password.py | 13 +++++++++++--
>  1 file changed, 11 insertions(+), 2 deletions(-)
> 
> diff --git a/pyanaconda/ui/gui/spokes/password.py b/pyanaconda/ui/gui/spokes/password.py
> index c64df56..9dd9576 100644
> --- a/pyanaconda/ui/gui/spokes/password.py
> +++ b/pyanaconda/ui/gui/spokes/password.py
> @@ -97,6 +97,10 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke):
>          self.pw_bar.add_offset_value("high", 4)
>  
>      def refresh(self):
> +        # Enable the input checks in case they were disabled on the last exit
> +        for check in self.checks:
> +            check.enable()
> +
>          self.pw.grab_focus()
>          self.pw.emit("changed")
>  
> @@ -116,10 +120,10 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke):
>  
>      def apply(self):
>          pw = self.pw.get_text()
> -        if (not pw) and (self._kickstarted):
> +        if not pw:
>              return
What if I want to remove the password set in the kickstart?

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list