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:
parent
a86a553db1
commit
7d29e09d11
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue