Skip to content

Commit

Permalink
credentials.py cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlm committed Dec 13, 2023
1 parent b6a522f commit 50be381
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions botocore/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@
ReadOnlyCredentials = namedtuple(
'ReadOnlyCredentials',
['access_key', 'secret_key', 'token', 'account_id', 'scope'],
defaults=(
None,
None,
),
defaults=(None, None),
)

_DEFAULT_MANDATORY_REFRESH_TIMEOUT = 10 * 60 # 10 min
Expand Down Expand Up @@ -2286,7 +2283,7 @@ def _get_credentials(self):
raise UnauthorizedSSOTokenError()
credentials = response['roleCredentials']

creds_dict = {
credentials = {
'ProviderType': 'sso',
'Credentials': {
'AccessKeyId': credentials['accessKeyId'],
Expand All @@ -2296,7 +2293,7 @@ def _get_credentials(self):
'AccountId': self._account_id,
},
}
return creds_dict
return credentials


class SSOProvider(CredentialProvider):
Expand Down

0 comments on commit 50be381

Please sign in to comment.