Commit 7688ae95 authored by Marcus's avatar Marcus

make sure primary group is defined

parent 53c49e4c
......@@ -24,6 +24,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)
self.credentials = {}
def exists(self):
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