Skip to content

Commit

Permalink
[AWS] fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelAllier committed Jan 30, 2024
1 parent 396c2ed commit 081e08b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions aws/logs_monitoring/cloudwatch_log_group_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ def get_log_group_tags(log_group):
formatted_tags = None
if response is not None:
formatted_tags = [
"{key}:{value}".format(
key=sanitize_aws_tag_string(k, remove_colons=True),
value=sanitize_aws_tag_string(v, remove_leading_digits=False),
(
"{key}:{value}".format(
key=sanitize_aws_tag_string(k, remove_colons=True),
value=sanitize_aws_tag_string(v, remove_leading_digits=False),
)
if v
else sanitize_aws_tag_string(k, remove_colons=True)
)
if v
else sanitize_aws_tag_string(k, remove_colons=True)
for k, v in response["tags"].items()
]
return formatted_tags
Expand Down

0 comments on commit 081e08b

Please sign in to comment.