Skip to content

Commit

Permalink
Merge pull request #398 from emmajhyde/391-role-credentials
Browse files Browse the repository at this point in the history
ISSUE-391: broke build - fix for credentials impl
  • Loading branch information
andrykonchin committed Dec 2, 2019
2 parents 6429f3a + fe21cee commit d15fb7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/dynamoid/adapter_plugin/aws_sdk_v3.rb
Expand Up @@ -78,14 +78,14 @@ def connection_config

# if credentials are passed, they already contain access key & secret key
if Dynamoid::Config.credentials?
connection_hash[:credentials] = Dynamoid::Config.credentials
@connection_hash[:credentials] = Dynamoid::Config.credentials
else
# otherwise, pass access key & secret key for credentials creation
if Dynamoid::Config.access_key?
connection_hash[:access_key_id] = Dynamoid::Config.access_key
@connection_hash[:access_key_id] = Dynamoid::Config.access_key
end
if Dynamoid::Config.secret_key?
connection_hash[:secret_access_key] = Dynamoid::Config.secret_key
@connection_hash[:secret_access_key] = Dynamoid::Config.secret_key
end
end

Expand Down

0 comments on commit d15fb7d

Please sign in to comment.