mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
correction for item and attribute counters in encode_batch_attributes
This commit is contained in:
parent
a9daa36405
commit
e6332f34bc
1 changed files with 2 additions and 2 deletions
|
@ -124,8 +124,8 @@ module Fog
|
||||||
item_index = 0
|
item_index = 0
|
||||||
for item_key in items.keys
|
for item_key in items.keys
|
||||||
encoded_attributes["Item.#{item_index}.ItemName"] = item_key.to_s
|
encoded_attributes["Item.#{item_index}.ItemName"] = item_key.to_s
|
||||||
for attribute_key in items[item_key].keys
|
|
||||||
attribute_index = 0
|
attribute_index = 0
|
||||||
|
for attribute_key in items[item_key].keys
|
||||||
for value in Array(items[item_key][attribute_key])
|
for value in Array(items[item_key][attribute_key])
|
||||||
encoded_attributes["Item.#{item_index}.Attribute.#{attribute_index}.Name"] = attribute_key.to_s
|
encoded_attributes["Item.#{item_index}.Attribute.#{attribute_index}.Name"] = attribute_key.to_s
|
||||||
if replace_attributes[item_key].include?(attribute_key)
|
if replace_attributes[item_key].include?(attribute_key)
|
||||||
|
@ -134,8 +134,8 @@ module Fog
|
||||||
encoded_attributes["Item.#{item_index}.Attribute.#{attribute_index}.Value"] = sdb_encode(value)
|
encoded_attributes["Item.#{item_index}.Attribute.#{attribute_index}.Value"] = sdb_encode(value)
|
||||||
attribute_index += 1
|
attribute_index += 1
|
||||||
end
|
end
|
||||||
item_index += 1
|
|
||||||
end
|
end
|
||||||
|
item_index += 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
encoded_attributes
|
encoded_attributes
|
||||||
|
|
Loading…
Reference in a new issue