From 674a3a9922e0d4b8a6eeab000e48022471f64480 Mon Sep 17 00:00:00 2001 From: Kyle Cierzan Date: Fri, 16 Sep 2016 10:30:21 -0400 Subject: [PATCH] Allow put_item to accept string arg for return_values --- sprockets/clients/dynamodb/connector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sprockets/clients/dynamodb/connector.py b/sprockets/clients/dynamodb/connector.py index b7aa998..d9222ed 100644 --- a/sprockets/clients/dynamodb/connector.py +++ b/sprockets/clients/dynamodb/connector.py @@ -515,7 +515,7 @@ class DynamoDB(object): payload['Limit'] = limit return self.execute('ListTables', payload) - def put_item(self, table_name, item, return_values=False, + def put_item(self, table_name, item, return_values=None, condition_expression=None, expression_attribute_names=None, expression_attribute_values=None, @@ -623,7 +623,7 @@ class DynamoDB(object): if return_item_collection_metrics: payload['ReturnItemCollectionMetrics'] = 'SIZE' if return_values: - payload['ReturnValues'] = 'ALL_OLD' + payload['ReturnValues'] = return_values return self.execute('PutItem', payload) def get_item(self, table_name, key_dict, consistent_read=False,