Commit 6ece8c23 authored by Joshua Bachmeier's avatar Joshua Bachmeier

Move hotfix to local_unix where it belongs

parent 4c8a8487
......@@ -40,7 +40,6 @@ class User:
self.data = data if isinstance(data, UserInfo) else UserInfo(data)
self.service_user = backend.User(self.data)
self.service_groups = [backend.Group(grp) for grp in self.data.groups]
self.service_user.primary_group = backend.Group(UserInfo(data).primary_group)
logger.info("/--------------------------------------------------------------------------------\\")
logger.info(F"primary group: {UserInfo(data).primary_group}")
......
......@@ -23,6 +23,7 @@ class User:
self.name = make_shadow_compatible(userinfo.username)
self.unique_id = userinfo.unique_id
self.ssh_keys = [key['value'] for key in userinfo.ssh_keys]
self.primary_group = Group(userinfo.primary_group)
def exists(self):
return bool(self.__passwd_entry)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment