Skip to content

Commit 0e42fd0

Browse files
committed
chore: rename things in package.py
1 parent 1fe3e4a commit 0e42fd0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,11 +1616,11 @@ def prepare_command(args):
16161616
content_hash = content_hash.hexdigest()
16171617

16181618
# 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))
16201620

16211621
# Compute timestamp trigger
16221622
was_missing = False
1623-
filename_path = os.path.join(os.getcwd(), filename)
1623+
filename_path = os.path.join(os.getcwd(), zip_filename)
16241624
if recreate_missing_package:
16251625
if os.path.exists(filename_path):
16261626
st = os.stat(filename_path)
@@ -1633,7 +1633,7 @@ def prepare_command(args):
16331633

16341634
# Replace variables in the build command with calculated values.
16351635
build_data = {
1636-
"filename": filename,
1636+
"filename": zip_filename,
16371637
"runtime": runtime,
16381638
"artifacts_dir": artifacts_dir,
16391639
"build_plan": build_plan,
@@ -1653,7 +1653,7 @@ def prepare_command(args):
16531653
# Output the result to Terraform.
16541654
json.dump(
16551655
{
1656-
"filename": filename,
1656+
"filename": zip_filename,
16571657
"build_plan": build_plan,
16581658
"build_plan_filename": build_plan_filename,
16591659
"timestamp": str(timestamp),

0 commit comments

Comments
 (0)