[f21/master] Clear the kickstart password if cleared by the user (#1133185)

David Shea dshea at redhat.com
Thu Sep 4 18:41:02 UTC 2014


If the user re-enters the password spoke and clears the password,
for-real clear the password instead of leaving it blank in the UI and
set in ksdata.
---
 pyanaconda/ui/gui/spokes/password.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pyanaconda/ui/gui/spokes/password.py b/pyanaconda/ui/gui/spokes/password.py
index ee2da7d..1177d4a 100644
--- a/pyanaconda/ui/gui/spokes/password.py
+++ b/pyanaconda/ui/gui/spokes/password.py
@@ -131,6 +131,7 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke, GUISpokeInputCheckHandler)
     def apply(self):
         pw = self.pw.get_text()
         if not pw:
+            self.data.rootpw.password = None
             return
 
         self.data.rootpw.password = cryptPassword(pw)
-- 
2.0.0



More information about the anaconda-patches mailing list