Skip to content

Commit c1a9fc0

Browse files
committed
Patch us-east-1 detection logic.
1 parent ba5c0d0 commit c1a9fc0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

awscli/customizations/globalargs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ def detect_migration_breakage(parsed_args, remaining_args, session, **kwargs):
133133
out_file=sys.stderr
134134
)
135135
if (
136-
s3_config is None or (
137-
s3_config is not None and s3_config.get(
138-
'us_east_1_regional_endpoint',
139-
'legacy'
140-
) == 'legacy' and region in ('us-east-1', None)
141-
)
136+
(s3_config is None or (
137+
s3_config is not None and s3_config.get(
138+
'us_east_1_regional_endpoint',
139+
'legacy'
140+
) == 'legacy')) and region in ('us-east-1', None)
141+
and parsed_args.endpoint_url is None
142142
):
143143
session.register(
144144
'request-created.s3.*',

0 commit comments

Comments
 (0)