remove now useless append check in user_mod

reviewable/pr18780/r1
Brendan Beveridge 13 years ago
parent 26b1bed22c
commit 2f53b91697

@ -173,10 +173,6 @@ def user_mod(user, **kwargs):
if kwargs[key] is not None and info[1] != kwargs[key]:
cmd.append('-p')
cmd.append(kwargs[key])
elif key == 'append':
if kwargs[key] is not None and kwargs[key] == 'yes':
if 'groups' in kwargs and kwargs['groups'] is not None:
cmd.append('-a')
# skip if no changes to be made
if len(cmd) == 1:
return False

Loading…
Cancel
Save