Skip to content

Commit

Permalink
fix invalidation parameters (#690)
Browse files Browse the repository at this point in the history
* fix invalidation parameters

* update log
  • Loading branch information
larisa17 authored Sep 30, 2024
1 parent 3552ef1 commit 080b334
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/ceramic_cache/management/commands/scorer_dump_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def handle_cron_job(self, *args, **options):
if cloudfront_distribution_id:
client = boto3.client('cloudfront')
paths_to_invalidate = [f"/{s3_key}"]
self.stdout.write(f"Create invalidation for {s3_key} in the cloufront distribution {cloudfront_distribution_id}")
self.stdout.write(f"Create invalidation for {paths_to_invalidate} in the cloufront distribution {cloudfront_distribution_id}")
response = client.create_invalidation(
DistributionId=cloudfront_distribution_id,
InvalidationBatch={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ def handle(self, *args, **options):

if cloudfront_distribution_id:
client = boto3.client("cloudfront")
s3_key = f"{s3_folder}/{filename}"
s3_key = f"/{s3_folder}/{filename}"
paths_to_invalidate = [s3_key]

self.stdout.write(
f"Create invalidation for {s3_key} in the cloufront distribution {cloudfront_distribution_id}"
f"Create invalidation for {paths_to_invalidate} in the cloufront distribution {cloudfront_distribution_id}"
)
response = client.create_invalidation(
DistributionId=cloudfront_distribution_id,
Expand Down

0 comments on commit 080b334

Please sign in to comment.