Skip to content

Commit

Permalink
Merge pull request #415 from patleb/iam-list-access_keys
Browse files Browse the repository at this point in the history
correction in iam/list_access_keys parser: Username should be UserName
  • Loading branch information
lanej authored Nov 22, 2017
2 parents 1caf487 + e869218 commit 710ed63
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/fog/aws/models/iam/access_keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ def initialize(attributes = {})

def all
data = service.list_access_keys('UserName'=> @username).body['AccessKeys']
# AWS response doesn't contain the UserName, this injects it
data.each {|access_key| access_key['UserName'] = @username }
load(data)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/fog/aws/parsers/iam/list_access_keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def reset

def end_element(name)
case name
when 'AccessKeyId', 'Status', 'Username'
when 'AccessKeyId', 'Status', 'UserName'
@access_key[name] = value
when 'member'
@response['AccessKeys'] << @access_key
Expand Down

0 comments on commit 710ed63

Please sign in to comment.