From 43ceb8b06a757138f70e306dab8f3664e32d1a77 Mon Sep 17 00:00:00 2001 From: Pior Bastida Date: Thu, 20 Aug 2015 17:06:10 -0400 Subject: [PATCH] Fix incorrect dynamodb2 delete_item response Attribute field must be a mapping (not a list) --- moto/dynamodb2/responses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/dynamodb2/responses.py b/moto/dynamodb2/responses.py index 069d3122..5f4372f7 100644 --- a/moto/dynamodb2/responses.py +++ b/moto/dynamodb2/responses.py @@ -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: