[PATCH 2/4] Show that password was set by kickstart in TUI

Martin Sivak msivak at redhat.com
Fri Mar 8 13:57:02 UTC 2013


---
 pyanaconda/ui/tui/spokes/password.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/tui/spokes/password.py b/pyanaconda/ui/tui/spokes/password.py
index bd81603..f6e1745 100644
--- a/pyanaconda/ui/tui/spokes/password.py
+++ b/pyanaconda/ui/tui/spokes/password.py
@@ -48,7 +48,9 @@ class PasswordSpoke(NormalTUISpoke):
 
     @property
     def status(self):
-        if self.data.rootpw.password:
+        if self.data.rootpw.password and self.data.rootpw.seen:
+            return _("Password is set by kickstart.")
+        elif self.data.rootpw.password:
             return _("Password is set.")
         elif self.data.rootpw.lock:
             return _("Root account is disabled.")
@@ -92,3 +94,4 @@ class PasswordSpoke(NormalTUISpoke):
         self.data.rootpw.password = self._password
         self.data.rootpw.isCrypted = False
         self.data.rootpw.lock = False
+        self.data.rootpw.seen = False
-- 
1.7.11.7



More information about the anaconda-patches mailing list