allow @all as a valid group, for fedorapeople

This commit is contained in:
Michael McGrath 2008-03-13 15:54:25 -05:00
parent 844999b0ab
commit 0b94513275

View file

@ -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']