From 3341c84d01a34cee445fa6dacda41ff4f493b2e5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 9 Sep 2014 10:56:41 +0200 Subject: [PATCH] Let genacls.pkgdb use the pkgdb.stg instance in stg --- roles/distgit/templates/genacls.pkgdb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/distgit/templates/genacls.pkgdb b/roles/distgit/templates/genacls.pkgdb index 88f75e7970..8569274346 100644 --- a/roles/distgit/templates/genacls.pkgdb +++ b/roles/distgit/templates/genacls.pkgdb @@ -33,7 +33,12 @@ if __name__ == '__main__': RESERVED = ['f[0-9][0-9]', 'epel[0-9]', 'epel[0-9][0-9]', 'el[0-9]', 'olpc[0-9]'] # Read the ACL information from the packageDB - data = requests.get('https://admin.fedoraproject.org/pkgdb/api/vcs?format=json').json() + {% if env == 'staging' %} + url = 'https://admin.stg.fedoraproject.org/pkgdb/api/vcs?format=json' + {% else %} + url = 'https://admin.fedoraproject.org/pkgdb/api/vcs?format=json' + {% endif %} + data = requests.get(url).json() # Get a list of all the packages acls = data['packageAcls']