Skip to content

Commit

Permalink
Use legacy resolver as source of default region name
Browse files Browse the repository at this point in the history
  • Loading branch information
jonemo authored and stealthycoin committed Nov 17, 2022
1 parent d910896 commit 1000c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awscli/botocore/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def _build_endpoint_resolver(
service_name_raw = service_model.endpoint_prefix
# Maintain complex logic for s3 and sts endpoints for backwards
# compatibility.
if service_name_raw in ['s3', 'sts']:
if service_name_raw in ['s3', 'sts'] or region_name is None:
eprv2_region_name = endpoint_region_name
else:
eprv2_region_name = region_name
Expand Down

0 comments on commit 1000c67

Please sign in to comment.