1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

correction in iam/list_access_keys parser: Username should be UserName

This commit is contained in:
Patrice Lebel 2017-11-22 11:34:24 -05:00
parent 1caf487df8
commit e8692189ce
2 changed files with 1 additions and 3 deletions

View file

@ -13,8 +13,6 @@ module Fog
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

View file

@ -10,7 +10,7 @@ module Fog
def end_element(name)
case name
when 'AccessKeyId', 'Status', 'Username'
when 'AccessKeyId', 'Status', 'UserName'
@access_key[name] = value
when 'member'
@response['AccessKeys'] << @access_key