[sysadmin-bin] Fix up the path to the repositories



commit f609557dd171f4eadf614963bf006fc8c3dee57f
Author: Andrea Veri <averi redhat com>
Date:   Tue May 29 21:22:14 2018 +0200

    Fix up the path to the repositories

 cleanup-inactive-ldap-accounts.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/cleanup-inactive-ldap-accounts.py b/cleanup-inactive-ldap-accounts.py
index 9d80174..320d9f3 100755
--- a/cleanup-inactive-ldap-accounts.py
+++ b/cleanup-inactive-ldap-accounts.py
@@ -17,7 +17,7 @@ from gnome_ldap_utils import *
 execfile('/home/admin/secret/freeipa')
 
 glu = Gnome_ldap_utils(LDAP_GROUP_BASE, LDAP_HOST, LDAP_USER_BASE, 'cn=Directory Manager', ldap_password)
-GL_PATH = '/var/opt/gitlab/git-data/repositories'
+GL_PATH = '/var/opt/gitlab/git-data/repositories/GNOME'
 
 parser = OptionParser()
 parser.add_option("--print-inactive-accounts", action="store_true", default=False,
@@ -32,7 +32,7 @@ if socket.gethostname() != 'gitlab.gnome.org':
     print ("You are not allowed to run this script on a different host than git.gnome.org, exiting...", 
end='\n')
     sys.exit(1)
 
-repositories = filter( lambda f: not f.endswith('wiki.git'), os.listdir('%s/GNOME' % GL_PATH))
+repositories = filter( lambda f: not f.endswith('wiki.git'), os.listdir(GL_PATH))
 last_pushed_times = {}
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]