Skip to content

Commit 7365324

Browse files
committed
Patch us-east-1 detection based on extra conditions.
1 parent c1a9fc0 commit 7365324

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

awscli/customizations/globalargs.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +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)
136+
(
137+
s3_config is None
138+
or s3_config.get('us_east_1_regional_endpoint', 'legacy')
139+
== 'legacy'
140+
)
141+
and region in ('us-east-1', None)
141142
and parsed_args.endpoint_url is None
142143
):
143144
session.register(

0 commit comments

Comments
 (0)