From 77dff119db3ac2a4b78e9e92bf999e135cdfd3d1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 26 Apr 2019 16:26:48 +0100 Subject: [PATCH] Fix variable scope in redeployer --- scripts/redeploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/redeploy.py b/scripts/redeploy.py index 3ab71de6..1c69d6b5 100755 --- a/scripts/redeploy.py +++ b/scripts/redeploy.py @@ -115,8 +115,8 @@ def on_receive_buildkite_poke(): artifacts_resp.raise_for_status() artifacts_array = artifacts_resp.json() + artifact_to_deploy = None for artifact in artifacts_array: - artifact_to_deploy = None if re.match(r"dist/.*.tar.gz", artifact['path']): artifact_to_deploy = artifact if artifact_to_deploy is None: