Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
  • Loading branch information
thedoubl3j and webknjaz committed Oct 10, 2024
1 parent 164b54a commit db9e869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/awx_plugins/credentials/aws_assumerole.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def aws_assumerole_backend(
)
credential_key = credential_key_hash.hexdigest()

credentials = _aws_cred_cache.get(credential_key, None)
credentials = _aws_cred_cache.get(credential_key, {})

# If there are no credentials for this user/ARN *or* the credentials
# we have in the cache have expired, then we need to contact AWS again.
Expand Down
2 changes: 1 addition & 1 deletion tests/credential_plugins_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def test_aws_assumerole_identifier(
def mock_getcreds(
access_key: str | None,
secret_key: str | None,
role_arn: str | None,
role_arn: str,
external_id: int,
) -> dict:
return {
Expand Down

0 comments on commit db9e869

Please sign in to comment.