summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Yves Chibon <pingou@pingoured.fr>2015-01-23 10:08:57 +0100
committerPierre-Yves Chibon <pingou@pingoured.fr>2015-01-23 10:08:57 +0100
commitbfa2f9bb436715fc919b943a57deb157adaee8c8 (patch)
tree168948add3373ff3a82832873f22c3258ba0e359
parent4b57e9101d829464b9560630eab9c8c0e26f267d (diff)
Use the stg pkgdb when retrieving the groups
-rw-r--r--roles/distgit/templates/genacls.pkgdb4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/distgit/templates/genacls.pkgdb b/roles/distgit/templates/genacls.pkgdb
index da1d99372..fc5782e1e 100644
--- a/roles/distgit/templates/genacls.pkgdb
+++ b/roles/distgit/templates/genacls.pkgdb
@@ -58,7 +58,11 @@ if __name__ == '__main__':
print '@fedora-ppc = %s' % ' '.join(PPC)
# Get a list of all the groups
+{% if env == 'staging' %}
+ groups = requests.get('https://admin.stg.fedoraproject.org/pkgdb/api/groups?format=json').json()
+{% else %}
groups = requests.get('https://admin.fedoraproject.org/pkgdb/api/groups?format=json').json()
+{% endif %}
for group in groups['groups']:
print '@%s = %s' % (group, ' '.join(grp.getgrnam(group)[3]))