1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Bugfix for setting user groups on OpenBSD

This commit is contained in:
Anton Kasimov 2017-05-20 15:41:24 +03:00 committed by Brian Coca
parent e506b5da14
commit 2e392f47c8

View file

@ -1028,7 +1028,7 @@ class OpenBSDUser(User):
if self.groups is not None:
current_groups = self.user_group_membership()
groups_need_mod = False
groups_option = '-G'
groups_option = '-S'
groups = []
if self.groups == '':
@ -1042,7 +1042,7 @@ class OpenBSDUser(User):
if self.append:
for g in groups:
if g in group_diff:
groups_option = '-S'
groups_option = '-G'
groups_need_mod = True
break
else: