Fix incorrect dynamodb2 delete_item response

Attribute field must be a mapping (not a list)
This commit is contained in:
Pior Bastida 2015-08-20 17:06:10 -04:00
parent 8fcb63d661
commit 43ceb8b06a

View File

@ -358,7 +358,7 @@ class DynamoHandler(BaseResponse):
if return_values == 'ALL_OLD':
item_dict = item.to_json()
else:
item_dict = {'Attributes': []}
item_dict = {'Attributes': {}}
item_dict['ConsumedCapacityUnits'] = 0.5
return dynamo_json_dump(item_dict)
else: