Skip to content

Commit 2de26c8

Browse files
author
Michele Mancioppi
committed
lint
1 parent 9252cdf commit 2de26c8

File tree

2 files changed

+5
-3
lines changed
  • sdk-extension/opentelemetry-sdk-extension-aws

2 files changed

+5
-3
lines changed

Diff for: sdk-extension/opentelemetry-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/resource/ecs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _get_logs_resource(metadata_container):
135135

136136
if not logs_region:
137137
aws_region_match = re.match(
138-
r'arn:aws:ecs:([^:]+):.*', container_arn
138+
r"arn:aws:ecs:([^:]+):.*", container_arn
139139
)
140140
if aws_region_match:
141141
logs_region = aws_region_match.group(1)
@@ -147,7 +147,7 @@ def _get_logs_resource(metadata_container):
147147
# log-group and log-stream ARNs
148148
aws_account = None
149149
aws_account_match = re.match(
150-
r'arn:aws:ecs:[^:]+:([^:]+):.*', container_arn
150+
r"arn:aws:ecs:[^:]+:([^:]+):.*", container_arn
151151
)
152152
if aws_account_match:
153153
aws_account = aws_account_match.group(1)

Diff for: sdk-extension/opentelemetry-sdk-extension-aws/tests/resource/test_ecs.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ def test_simple_create_metadata_v4_launchtype_fargate(
221221
OrderedDict(
222222
{
223223
**MockEcsResourceAttributes,
224-
ResourceAttributes.AWS_LOG_GROUP_NAMES: ("/ecs/containerlogs",),
224+
ResourceAttributes.AWS_LOG_GROUP_NAMES: (
225+
"/ecs/containerlogs",
226+
),
225227
ResourceAttributes.AWS_LOG_GROUP_ARNS: (
226228
"arn:aws:logs:us-west-2:111122223333:log-group:/ecs/containerlogs",
227229
),

0 commit comments

Comments
 (0)