Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Mancioppi committed Sep 28, 2022
1 parent 491261b commit 51bf4ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Expand Up @@ -135,7 +135,7 @@ def _get_logs_resource(metadata_container):

if not logs_region:
aws_region_match = re.match(
r'arn:aws:ecs:([^:]+):.*', container_arn
r"arn:aws:ecs:([^:]+):.*", container_arn
)
if aws_region_match:
logs_region = aws_region_match.group(1)
Expand All @@ -147,7 +147,7 @@ def _get_logs_resource(metadata_container):
# log-group and log-stream ARNs
aws_account = None
aws_account_match = re.match(
r'arn:aws:ecs:[^:]+:([^:]+):.*', container_arn
r"arn:aws:ecs:[^:]+:([^:]+):.*", container_arn
)
if aws_account_match:
aws_account = aws_account_match.group(1)
Expand Down
Expand Up @@ -221,7 +221,9 @@ def test_simple_create_metadata_v4_launchtype_fargate(
OrderedDict(
{
**MockEcsResourceAttributes,
ResourceAttributes.AWS_LOG_GROUP_NAMES: ("/ecs/containerlogs",),
ResourceAttributes.AWS_LOG_GROUP_NAMES: (
"/ecs/containerlogs",
),
ResourceAttributes.AWS_LOG_GROUP_ARNS: (
"arn:aws:logs:us-west-2:111122223333:log-group:/ecs/containerlogs",
),
Expand Down

0 comments on commit 51bf4ad

Please sign in to comment.