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

pull/18777/head
Levi Morales 8 years ago committed by Matt Clay
parent 254df9bcca
commit 0c9d895438

@ -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…
Cancel
Save