Without this patch, if the Root password spoke is entered and left by clicking
the Done button with the root password set in kickstart, the traceback appears
because we are trying to crypt None.
Signed-off-by: Vratislav Podzimek <vpodzime(a)redhat.com>
---
pyanaconda/ui/gui/spokes/password.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/password.py b/pyanaconda/ui/gui/spokes/password.py
index e6bb5a3..859ebc3 100644
--- a/pyanaconda/ui/gui/spokes/password.py
+++ b/pyanaconda/ui/gui/spokes/password.py
@@ -97,7 +97,7 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke):
if "wheel" in user.groups)
def apply(self):
- if self._password == "" and self._kickstarted:
+ if self._password is None and self._kickstarted:
return
self.data.rootpw.password = cryptPassword(self._password)
--
1.7.11.7