Fix incorrect dynamodb2 delete_item response
Attribute field must be a mapping (not a list)
This commit is contained in:
parent
8fcb63d661
commit
43ceb8b06a
@ -358,7 +358,7 @@ class DynamoHandler(BaseResponse):
|
|||||||
if return_values == 'ALL_OLD':
|
if return_values == 'ALL_OLD':
|
||||||
item_dict = item.to_json()
|
item_dict = item.to_json()
|
||||||
else:
|
else:
|
||||||
item_dict = {'Attributes': []}
|
item_dict = {'Attributes': {}}
|
||||||
item_dict['ConsumedCapacityUnits'] = 0.5
|
item_dict['ConsumedCapacityUnits'] = 0.5
|
||||||
return dynamo_json_dump(item_dict)
|
return dynamo_json_dump(item_dict)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user