mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
254df9bcca
commit
0c9d895438
1 changed files with 7 additions and 6 deletions
|
@ -1548,12 +1548,13 @@ class DarwinUser(User):
|
|||
else:
|
||||
target = set([])
|
||||
|
||||
for remove in current - target:
|
||||
(_rc, _err, _out) = self.__modify_group(remove, 'delete')
|
||||
rc += rc
|
||||
out += _out
|
||||
err += _err
|
||||
changed = True
|
||||
if self.append is False:
|
||||
for remove in current - target:
|
||||
(_rc, _err, _out) = self.__modify_group(remove, 'delete')
|
||||
rc += rc
|
||||
out += _out
|
||||
err += _err
|
||||
changed = True
|
||||
|
||||
for add in target - current:
|
||||
(_rc, _err, _out) = self.__modify_group(add, 'add')
|
||||
|
|
Loading…
Reference in a new issue