Commit 30e60843 authored by Joshua Bachmeier's avatar Joshua Bachmeier

adapter: Also ensure existance of primary group

parent facdabd3
......@@ -261,7 +261,7 @@ class User:
Create the groups on the service, if necessary.
"""
for group in filter(lambda grp: not grp.exists(), self.service_groups):
for group in filter(lambda grp: not grp.exists(), [self.service_user.primary_group] + self.service_groups):
logger.info("Creating group {}".format(group.name))
group.create()
......
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