Skip to content

Commit cca9412

Browse files
committed
Fix bug with get_tag_response
1 parent 409126d commit cca9412

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

.github/workflows/test-release-bundle.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

aws/logs_monitoring/lambda_function.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -820,11 +820,11 @@ def get_s3_tags(s3_client, bucket_name):
820820
@lru_cache(maxsize=1024)
821821
def get_tag_response(bucket):
822822
try:
823-
tag_response = s3_client.get_bucket_tagging(Bucket=bucket_name)
823+
return s3_client.get_bucket_tagging(Bucket=bucket)
824824
except:
825825
return {}
826826

827-
tag_response = get_tag_response()
827+
tag_response = get_tag_response(bucket_name)
828828
if tag_response == {}:
829829
return {}
830830

@@ -835,7 +835,7 @@ def get_tag_response(bucket):
835835
tags[tag["Key"]] = tag["Value"]
836836
return tags
837837

838-
@lru_cache(maxsize=128)
838+
839839
def format_s3_tags(s3_tags):
840840
tags = []
841841
for key in s3_tags:

0 commit comments

Comments
 (0)