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

Fixes #2322 fix for missing append check on Darwin systems (#4256)

This commit is contained in:
Levi Morales 2016-08-30 04:59:04 -05:00 committed by Matt Clay
parent 254df9bcca
commit 0c9d895438

View file

@ -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')