mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
fix error in remap_attributes
This commit is contained in:
parent
91a0d88f69
commit
ff2f32d342
2 changed files with 4 additions and 4 deletions
|
@ -12,9 +12,9 @@ module Fog
|
|||
def initialize(attributes = {})
|
||||
remap_attributes(attributes, {
|
||||
'IsTruncated' => :is_truncated,
|
||||
'Marker' => :marker,
|
||||
'MaxKeys' => :max_keys,
|
||||
'Prefix' => :prefix
|
||||
'Marker' => :marker,
|
||||
'MaxKeys' => :max_keys,
|
||||
'Prefix' => :prefix
|
||||
})
|
||||
super
|
||||
end
|
||||
|
|
|
@ -36,7 +36,7 @@ module Fog
|
|||
|
||||
def remap_attributes(attributes, mapping)
|
||||
for key, value in mapping
|
||||
if attributes[key]
|
||||
if mapping[key]
|
||||
attributes[value] = attributes.delete(key)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue