Skip to content

Commit

Permalink
changes a variable name from is_opt_in_region to is_opt_in_region_red…
Browse files Browse the repository at this point in the history
…irect
  • Loading branch information
ubaskota committed Nov 20, 2024
1 parent fcbdd24 commit 0af86dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions botocore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,7 @@ def redirect_from_error(self, request_dict, response, operation, **kwargs):
0
].status_code in (301, 302, 307)
is_permanent_redirect = error_code == 'PermanentRedirect'
is_opt_in_region = (
is_opt_in_region_redirect = (
error_code == 'IllegalLocationConstraintException'
and operation.name != 'CreateBucket'
)
Expand All @@ -1787,7 +1787,7 @@ def redirect_from_error(self, request_dict, response, operation, **kwargs):
is_permanent_redirect,
is_special_head_bucket,
is_redirect_status,
is_opt_in_region,
is_opt_in_region_redirect,
]
):
return
Expand Down

0 comments on commit 0af86dc

Please sign in to comment.