Don't add non-ceo group members in list_group
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Wed, 14 Nov 2007 03:36:09 +0000 (22:36 -0500)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Wed, 14 Nov 2007 03:36:09 +0000 (22:36 -0500)
pylib/csc/adm/members.py

index 3c6e74a..da3a958 100644 (file)
@@ -212,7 +212,9 @@ def list_group(group):
     if members:
         ret = {}
         for member in members:
-            ret[member] = get(member)
+            info = get(member)
+            if info:
+                ret[member] = info
         return ret
     else:
         return {}