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

fix a iterator vs local variable conflict

This commit is contained in:
geemus 2010-06-18 14:23:52 -07:00
parent 279ebec8da
commit 7206d2c3dd

View file

@ -30,9 +30,9 @@ module Fog
data = connection.get_bucket(key, options).body
directory = new(:key => data['Name'])
options = {}
for key, value in data
if ['Delimiter', 'IsTruncated', 'Marker', 'MaxKeys', 'Prefix'].include?(key)
options[key] = value
for k, v in data
if ['Delimiter', 'IsTruncated', 'Marker', 'MaxKeys', 'Prefix'].include?(k)
options[k] = v
end
end
directory.files.merge_attributes(options)