[PATCH] Make TUI password spoke behave the same as it's GUI counterpart

Martin Sivak msivak at redhat.com
Mon Sep 3 14:48:47 UTC 2012


---
 pyanaconda/ui/tui/spokes/password.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/ui/tui/spokes/password.py b/pyanaconda/ui/tui/spokes/password.py
index ccf3f33..649505b 100644
--- a/pyanaconda/ui/tui/spokes/password.py
+++ b/pyanaconda/ui/tui/spokes/password.py
@@ -37,12 +37,12 @@ class PasswordSpoke(NormalTUISpoke):
 
     @property
     def completed(self):
-        return self._password is not None
+        return True
 
     @property
     def status(self):
-        if self._password is None:
-            return _("Password is not set.")
+        if not self.data.rootpw.password:
+            return _("Root account disabled.")
         else:
             return _("Password is set.")
 
-- 
1.7.11.4



More information about the anaconda-patches mailing list