diff options
author | Dominique Barton <dbarton@confirm.ch> | 2015-11-24 11:40:03 +0100 |
---|---|---|
committer | nitzmahone <mdavis@ansible.com> | 2015-12-08 16:17:21 -0500 |
commit | 6128845b696b41d90862f6255b9a0e08557101c3 (patch) | |
tree | ed26d104b572e51298b86e2267b612ca12f563e2 | |
parent | 877daf970d37cb7716ac6bb9351a579548fe54aa (diff) | |
download | ansible-modules-core-6128845b696b41d90862f6255b9a0e08557101c3.tar.gz |
bugfix for issue #2537
-rwxr-xr-x | system/user.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/user.py b/system/user.py index c04b748f..e43173da 100755 --- a/system/user.py +++ b/system/user.py @@ -1684,7 +1684,8 @@ class DarwinUser(User): out = '' err = '' - self._make_group_numerical() + if self.group: + self._make_group_numerical() for field in self.fields: if self.__dict__.has_key(field[0]) and self.__dict__[field[0]]: |