[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH master] syntax errors correcting



---
 pyanaconda/users.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/users.py b/pyanaconda/users.py
index 9b51bc6..de5a1c8 100644
--- a/pyanaconda/users.py
+++ b/pyanaconda/users.py
@@ -126,7 +126,7 @@ class Users:
                 groupEnt = self.admin.initGroup(name)
 
                 if "gid" in kwargs and kwargs["gid"] >= 0:
-                    groupEnt.set(libuser.GIDNUMBER, kwargs]"gid"])
+                    groupEnt.set(libuser.GIDNUMBER, kwargs["gid"])
 
                 self.admin.addGroup(groupEnt)
                 os._exit(0)
@@ -312,7 +312,7 @@ class Users:
             for gd in self.anaconda.ksdata.group.groupList:
                 kwargs = gd.__dict__
                 kwargs.update({"root": instPath})
-                if not self.createGroup(gd.name, **kwargs)
+                if not self.createGroup(gd.name, **kwargs):
                     log.error("Group %s already exists, not creating." % gd.name)
 
             for ud in self.anaconda.ksdata.user.userList:
-- 
1.7.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]