Merge pull request #2289 from spulec/fix-2275

Fix for UpdateExpression with newline. Closes #2275.
This commit is contained in:
Steve Pulec 2019-07-09 19:58:32 -05:00 committed by GitHub
commit 12aa5dddf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -565,7 +565,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', {})