зеркало из https://github.com/microsoft/fog.git
fix a iterator vs local variable conflict
This commit is contained in:
Родитель
279ebec8da
Коммит
7206d2c3dd
|
@ -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)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче