mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 10:31:56 +08:00
Use the stg pkgdb when retrieving the groups
This commit is contained in:
@@ -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]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user