Merge pull request #12875 from vector-im/dbkr/fix_artifact_search

Fix artifact searching in redeployer
This commit is contained in:
David Baker 2020-03-25 15:25:12 +00:00 committed by GitHub
commit 5c51063070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -133,9 +133,9 @@ def on_receive_buildkite_poke():
for artifact in artifacts_array: for artifact in artifacts_array:
if re.match(r"dist/.*.tar.gz", artifact['path']): if re.match(r"dist/.*.tar.gz", artifact['path']):
artifact_to_deploy = artifact artifact_to_deploy = artifact
if artifact_to_deploy is None: if artifact_to_deploy is None:
print("No suitable artifacts found") print("No suitable artifacts found")
return jsonify({}) return jsonify({})
# double paranoia check: make sure the artifact is on the right org too # double paranoia check: make sure the artifact is on the right org too
if required_api_prefix is not None and not artifact_to_deploy['url'].startswith(required_api_prefix): if required_api_prefix is not None and not artifact_to_deploy['url'].startswith(required_api_prefix):