Skip to content

Commit

Permalink
bug fix. account id may not always be a builtin when configured as a …
Browse files Browse the repository at this point in the history
…param on a ruleset
  • Loading branch information
davidlm committed Oct 27, 2023
1 parent dee1e9f commit 83017c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion botocore/regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,8 @@ def _get_provider_params(
def _resolve_credential_builtins(self, builtins):
resolver = self._credential_builtin_resolver
signing_enabled = self._requested_auth_scheme != UNSIGNED
if 'AccountId' in self._param_definitions:
param_def = self._param_definitions.get('AccountId')
if param_def is not None and param_def.builtin is not None:
resolver.resolve_account_id_builtin(builtins, signing_enabled)

def _resolve_param_from_context(
Expand Down

0 comments on commit 83017c5

Please sign in to comment.