1
0
Fork 0
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:
Wesley Beary 2009-08-17 18:07:46 -07:00
parent 91a0d88f69
commit ff2f32d342
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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