From 18c429d016218ea7ab8559f45773b53d39961f87 Mon Sep 17 00:00:00 2001 From: Peter Oliver Date: Wed, 17 Dec 2014 12:44:58 +0000 Subject: [PATCH] Fix appending to a user's group on Solaris Without this change, you get: AttributeError: 'set' object has no attribute 'extend' Tested on a Solaris 11.2 client with the included Python 2.6.8. --- system/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/user.py b/system/user.py index 30ae29d30ae..aaeee5683d3 100644 --- a/system/user.py +++ b/system/user.py @@ -1255,7 +1255,7 @@ class SunOS(User): cmd.append('-G') new_groups = groups if self.append: - new_groups.extend(current_groups) + new_groups.update(current_groups) cmd.append(','.join(new_groups)) if self.comment is not None and info[4] != self.comment: