From 0b945132753df993eed61e40fa49be670ad91b58 Mon Sep 17 00:00:00 2001 From: Michael McGrath Date: Thu, 13 Mar 2008 15:54:25 -0500 Subject: [PATCH] allow @all as a valid group, for fedorapeople --- fas/client/fasClient | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fas/client/fasClient b/fas/client/fasClient index ba0dc1e..3a9e440 100755 --- a/fas/client/fasClient +++ b/fas/client/fasClient @@ -156,7 +156,12 @@ class MakeShellAccounts(BaseClient): for group in config.get('host', restriction).strip('"').split(','): if group == '': continue - if group.startswith('@'): + if group == '@all': + for grp in self.groups: + if not grp['name'].startswith('cla'): + print grp['name'] + valid_groups[restriction].append(grp['name']) + elif group.startswith('@'): for grp in self.groups: if grp['group_type'] == group[1:]: valid_groups[restriction].append(grp['name']) @@ -334,7 +339,7 @@ class MakeShellAccounts(BaseClient): i = i + 1 except KeyError: continue - + for group in self.groups: gid = group['id'] name = group['name']