Fix illegal set operation in FreeBSD section of user module.

pull/4560/head
Thomas Ronner 11 years ago
parent 4bdf3da25a
commit aee68511e6

@ -745,7 +745,7 @@ class FreeBsdUser(User):
cmd.append('-G') cmd.append('-G')
new_groups = groups new_groups = groups
if self.append: if self.append:
new_groups.extend(current_groups) new_groups = groups | set(current_groups)
cmd.append(','.join(new_groups)) cmd.append(','.join(new_groups))
# modify the user if cmd will do anything # modify the user if cmd will do anything

Loading…
Cancel
Save