Merge pull request #712 from skygeo/fix_dynamodb_batch_write
fix: change dynamodb2 batch write response
This commit is contained in:
commit
ef42676496
@ -179,14 +179,14 @@ class DynamoHandler(BaseResponse):
|
|||||||
item = dynamodb_backend2.delete_item(table_name, keys)
|
item = dynamodb_backend2.delete_item(table_name, keys)
|
||||||
|
|
||||||
response = {
|
response = {
|
||||||
"Responses": {
|
"ConsumedCapacity": [
|
||||||
"Thread": {
|
{
|
||||||
"ConsumedCapacityUnits": 1.0
|
'TableName': table_name,
|
||||||
},
|
'CapacityUnits': 1.0,
|
||||||
"Reply": {
|
'Table': {'CapacityUnits': 1.0}
|
||||||
"ConsumedCapacityUnits": 1.0
|
} for table_name, table_requests in table_batches.items()
|
||||||
}
|
],
|
||||||
},
|
"ItemCollectionMetrics": {},
|
||||||
"UnprocessedItems": {}
|
"UnprocessedItems": {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user