def get_gid_list(user=None, include_default=True):
 if ((HAS_GRP is False) or (HAS_PWD is False)):
  return []
 gid_list = [gid for (group, gid) in six.iteritems(salt.utils.get_group_dict(user, include_default=include_default))]
 return sorted(set(gid_list))

def get_gid_list ( user = None , include_default = True ) : if ( ( HAS_GRP is False ) or ( HAS_PWD is False ) ) : return [ ] gid_list = [ gid for ( group , gid ) in six . iteritems ( salt . utils . get_group_dict ( user , include_default = include_default ) ) ] return sorted ( set ( gid_list ) )
returns a list of all of the system group ids of which the user is a member .