[sysadmin-bin] Make use of an LDAP group instead of hardcoding values directly on the script
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Make use of an LDAP group instead of hardcoding values directly on the script
- Date: Tue, 16 Apr 2019 08:45:17 +0000 (UTC)
commit b8a273f3c54bb3c8bf64c0284c79bc098ace2459
Author: Andrea Veri <averi redhat com>
Date: Tue Apr 16 10:45:03 2019 +0200
Make use of an LDAP group instead of hardcoding values directly on the script
gitlab/gitlab-operations.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gitlab/gitlab-operations.py b/gitlab/gitlab-operations.py
index 3d06f3a..e3d38b7 100755
--- a/gitlab/gitlab-operations.py
+++ b/gitlab/gitlab-operations.py
@@ -27,6 +27,7 @@ gnomeusers = group.members.list(all=True)
l10n_group = gl.groups.get(13336, with_projects=False)
gnomeusers_dict = {}
projects = group.projects.list(all=True)
+gnomecvs_exceptions = glu.get_uids_from_group('gnomecvs_exceptions')
for user in ldapusers:
for index, _ in enumerate(user.attributes['identities']):
@@ -80,7 +81,7 @@ for username, id in ldapusers_dict.iteritems():
for username, id in gnomeusers_dict.iteritems():
if username not in gnomecvs_members:
# Hardcode the list of GNOME group owners here
- if username in ('csoriano-gitlab-admin-account', 'gitlab-bugzilla-migration', 'gitlab-bot',
'barthalion'):
+ if username in gnomecvs_exceptions:
pass
else:
group.members.delete(id)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]