fix a iterator vs local variable conflict

This commit is contained in:
geemus 2010-06-18 14:23:52 -07:00
Родитель 279ebec8da
Коммит 7206d2c3dd
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

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