[PATCH 3/3] Password spoke is mandatory if the created user os not an admin

Martin Sivak msivak at redhat.com
Mon Feb 11 13:24:08 UTC 2013


---
 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 441050e..ed861da 100644
--- a/pyanaconda/ui/gui/spokes/password.py
+++ b/pyanaconda/ui/gui/spokes/password.py
@@ -85,7 +85,7 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke):
 
     @property
     def mandatory(self):
-        return not self.data.user.userList
+        return not [user for user in self.data.user.userList if "wheel" in user.groups]
         
     def apply(self):
         self.data.rootpw.password = cryptPassword(self._password)
-- 
1.7.11.7



More information about the anaconda-patches mailing list