Fix variable scope in redeployer
This commit is contained in:
+1
-1
@@ -115,8 +115,8 @@ def on_receive_buildkite_poke():
|
|||||||
artifacts_resp.raise_for_status()
|
artifacts_resp.raise_for_status()
|
||||||
artifacts_array = artifacts_resp.json()
|
artifacts_array = artifacts_resp.json()
|
||||||
|
|
||||||
for artifact in artifacts_array:
|
|
||||||
artifact_to_deploy = None
|
artifact_to_deploy = None
|
||||||
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user