Commit 55317b1d authored by marcus.hardt's avatar marcus.hardt

Merge branch 'marcus-fix-primary_group' into 'master'

add primary user group object to user

Closes #30

See merge request !35
parents acab03c4 6ece8c23
......@@ -43,6 +43,7 @@ class User:"/--------------------------------------------------------------------------------\\")"primary group: {UserInfo(data).primary_group}")"primary group from service_user: {self.service_user.primary_group}")"--------------------------------------------------------------------------------")"self.service_groups: ")
......@@ -23,6 +23,7 @@ class User: = 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