Let genacls.pkgdb use the pkgdb.stg instance in stg
This commit is contained in:
parent
0d41c13df1
commit
3341c84d01
1 changed files with 6 additions and 1 deletions
|
@ -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]']
|
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
|
# 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
|
# Get a list of all the packages
|
||||||
acls = data['packageAcls']
|
acls = data['packageAcls']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue