mbs-build: only sleep 30s if not done yet

This commit is contained in:
Nils Philippsen
2017-05-17 11:48:20 +02:00
parent 244f9960a6
commit 92ee66e107

View File

@@ -116,7 +116,8 @@ def watch_build(server, build_id):
if data.get('koji_tag'):
template += ' (koji tag: "{koji_tag}")'
print(template.format(**data))
time.sleep(30)
if not done:
time.sleep(30)
# Ideally we would use oidc.send_request here, but it doesn't support
# custom HTTP verbs/methods like "PATCH". It sends just "POST"...