Another place where we'll assume we're in prod
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
23e18eafe4
commit
d763ad3e1d
1 changed files with 1 additions and 2 deletions
|
@ -94,7 +94,6 @@ def main(msg):
|
||||||
print('Talking to koji at: %s' % koji_url)
|
print('Talking to koji at: %s' % koji_url)
|
||||||
koji_client = koji.ClientSession(koji_url)
|
koji_client = koji.ClientSession(koji_url)
|
||||||
|
|
||||||
request = msg['request'][0]
|
|
||||||
build_id = msg['build_id']
|
build_id = msg['build_id']
|
||||||
build = koji_client.getBuild(build_id)
|
build = koji_client.getBuild(build_id)
|
||||||
git_url = (
|
git_url = (
|
||||||
|
@ -137,7 +136,7 @@ def main(msg):
|
||||||
|
|
||||||
pagure_url = 'https://src.fedoraproject.org'
|
pagure_url = 'https://src.fedoraproject.org'
|
||||||
env_var = 'API_TOKEN'
|
env_var = 'API_TOKEN'
|
||||||
if '.stg.' in request:
|
if msg['request'] and '.stg.' in msg['request'][0]:
|
||||||
pagure_url = 'https://src.stg.fedoraproject.org'
|
pagure_url = 'https://src.stg.fedoraproject.org'
|
||||||
env_var = 'API_TOKEN_STG'
|
env_var = 'API_TOKEN_STG'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue