Fix for UpdateExpression with newline. Closes #2275.

This commit is contained in:
Steve Pulec 2019-07-09 18:21:00 -05:00
parent e77c4e3d09
commit 53f8997d62

View File

@ -626,7 +626,7 @@ class DynamoHandler(BaseResponse):
name = self.body['TableName']
key = self.body['Key']
return_values = self.body.get('ReturnValues', 'NONE')
update_expression = self.body.get('UpdateExpression')
update_expression = self.body.get('UpdateExpression', '').strip()
attribute_updates = self.body.get('AttributeUpdates')
expression_attribute_names = self.body.get(
'ExpressionAttributeNames', {})