@@ -1616,11 +1616,11 @@ def prepare_command(args):
1616
1616
content_hash = content_hash .hexdigest ()
1617
1617
1618
1618
# Generate a unique filename based on the hash.
1619
- filename = os .path .join (artifacts_dir , "{}.zip" .format (content_hash ))
1619
+ zip_filename = os .path .join (artifacts_dir , "{}.zip" .format (content_hash ))
1620
1620
1621
1621
# Compute timestamp trigger
1622
1622
was_missing = False
1623
- filename_path = os .path .join (os .getcwd (), filename )
1623
+ filename_path = os .path .join (os .getcwd (), zip_filename )
1624
1624
if recreate_missing_package :
1625
1625
if os .path .exists (filename_path ):
1626
1626
st = os .stat (filename_path )
@@ -1633,7 +1633,7 @@ def prepare_command(args):
1633
1633
1634
1634
# Replace variables in the build command with calculated values.
1635
1635
build_data = {
1636
- "filename" : filename ,
1636
+ "filename" : zip_filename ,
1637
1637
"runtime" : runtime ,
1638
1638
"artifacts_dir" : artifacts_dir ,
1639
1639
"build_plan" : build_plan ,
@@ -1653,7 +1653,7 @@ def prepare_command(args):
1653
1653
# Output the result to Terraform.
1654
1654
json .dump (
1655
1655
{
1656
- "filename" : filename ,
1656
+ "filename" : zip_filename ,
1657
1657
"build_plan" : build_plan ,
1658
1658
"build_plan_filename" : build_plan_filename ,
1659
1659
"timestamp" : str (timestamp ),
0 commit comments