Skip to content

Commit

Permalink
Fix aws_account_attribute lookup credentials bug for access keys (ans…
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hertel authored Jan 23, 2018
1 parent 33c4351 commit ff2ad89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/plugins/lookup/aws_account_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def _boto3_conn(region, credentials):
def _get_credentials(options):
credentials = {}
credentials['boto_profile'] = options['boto_profile']
credentials['aws_secret_access_key'] = options['aws_access_key']
credentials['aws_access_key_id'] = options['aws_secret_key']
credentials['aws_secret_access_key'] = options['aws_secret_key']
credentials['aws_access_key_id'] = options['aws_access_key']
credentials['aws_session_token'] = options['aws_security_token']

return credentials
Expand Down

0 comments on commit ff2ad89

Please sign in to comment.