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

[AWS|DynamoDB] update item should not be idempotent when an action is specified

This commit is contained in:
geemus 2012-01-22 21:35:58 -06:00
parent a86a553db1
commit 7d29e09d11

View file

@ -37,10 +37,12 @@ module Fog
'TableName' => table_name
}.merge(options)
idempotent = attribute_updates.any? {|key, value| value.has_key?('Action')}
request(
:body => MultiJson.encode(body),
:headers => {'x-amz-target' => 'DynamoDB_20111205.UpdateItem'},
:idempotent => true
:idempotent => idempotent
)
end