From fea600ba0a794f5eed030f952e8667736e157790 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 25 Mar 2020 15:12:53 +0000 Subject: [PATCH] Fix artifact searching in redeployer Indenting fail --- scripts/redeploy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/redeploy.py b/scripts/redeploy.py index 6e9d29c382..064bbfaa29 100755 --- a/scripts/redeploy.py +++ b/scripts/redeploy.py @@ -133,9 +133,9 @@ def on_receive_buildkite_poke(): for artifact in artifacts_array: if re.match(r"dist/.*.tar.gz", artifact['path']): artifact_to_deploy = artifact - if artifact_to_deploy is None: - print("No suitable artifacts found") - return jsonify({}) + if artifact_to_deploy is None: + print("No suitable artifacts found") + return jsonify({}) # 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):