summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Barton <dbarton@confirm.ch>2015-11-24 11:40:03 +0100
committernitzmahone <mdavis@ansible.com>2015-12-08 16:17:21 -0500
commit6128845b696b41d90862f6255b9a0e08557101c3 (patch)
treeed26d104b572e51298b86e2267b612ca12f563e2
parent877daf970d37cb7716ac6bb9351a579548fe54aa (diff)
downloadansible-modules-core-6128845b696b41d90862f6255b9a0e08557101c3.tar.gz
bugfix for issue #2537
-rwxr-xr-xsystem/user.py3
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]]: