File tree 2 files changed +5
-3
lines changed
sdk-extension/opentelemetry-sdk-extension-aws
src/opentelemetry/sdk/extension/aws/resource
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def _get_logs_resource(metadata_container):
135
135
136
136
if not logs_region :
137
137
aws_region_match = re .match (
138
- r' arn:aws:ecs:([^:]+):.*' , container_arn
138
+ r" arn:aws:ecs:([^:]+):.*" , container_arn
139
139
)
140
140
if aws_region_match :
141
141
logs_region = aws_region_match .group (1 )
@@ -147,7 +147,7 @@ def _get_logs_resource(metadata_container):
147
147
# log-group and log-stream ARNs
148
148
aws_account = None
149
149
aws_account_match = re .match (
150
- r' arn:aws:ecs:[^:]+:([^:]+):.*' , container_arn
150
+ r" arn:aws:ecs:[^:]+:([^:]+):.*" , container_arn
151
151
)
152
152
if aws_account_match :
153
153
aws_account = aws_account_match .group (1 )
Original file line number Diff line number Diff line change @@ -221,7 +221,9 @@ def test_simple_create_metadata_v4_launchtype_fargate(
221
221
OrderedDict (
222
222
{
223
223
** MockEcsResourceAttributes ,
224
- ResourceAttributes .AWS_LOG_GROUP_NAMES : ("/ecs/containerlogs" ,),
224
+ ResourceAttributes .AWS_LOG_GROUP_NAMES : (
225
+ "/ecs/containerlogs" ,
226
+ ),
225
227
ResourceAttributes .AWS_LOG_GROUP_ARNS : (
226
228
"arn:aws:logs:us-west-2:111122223333:log-group:/ecs/containerlogs" ,
227
229
),
You can’t perform that action at this time.
0 commit comments