Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d13a19e

Browse files
committed
fix param pre-processing for forwarder after botocore upgrade
1 parent 6dbeec8 commit d13a19e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

‎localstack/aws/forwarder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ def create_aws_request_context(
175175
# The endpoint URL is mandatory here, set a dummy if not given (doesn't _need_ to be localstack specific)
176176
if not endpoint_url:
177177
endpoint_url = "http://localhost.localstack.cloud"
178+
# pre-process the request args (some params are modified using botocore event handlers)
179+
parameters = client._emit_api_params(parameters, operation, request_context)
178180
request_dict = client._convert_to_request_dict(
179181
parameters, operation, endpoint_url, context=request_context
180182
)

‎setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ runtime =
6969
awscrt>=0.13.14
7070
boto>=2.49.0
7171
boto3>=1.26.121
72-
botocore>=1.29.121
72+
botocore>=1.29.133
7373
cbor2>=5.2.0
7474
crontab>=0.22.6
7575
dnslib>=0.9.10

‎tests/unit/aws/test_service_router.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ def test_service_router_works_for_every_service(
172172
}
173173
request_args = _create_dummy_request_args(operation)
174174

175+
# pre-process the request args (some params are modified using botocore event handlers)
176+
request_args = client._emit_api_params(request_args, operation, request_context)
175177
# The endpoint URL is mandatory here, just set a dummy (doesn't _need_ to be localstack specific)
176178
request_dict = client._convert_to_request_dict(
177179
request_args, operation, "http://localhost.localstack.cloud", request_context

0 commit comments

Comments
 (0)