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:
parent
279ebec8da
commit
7206d2c3dd
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue