not requiring the provisioned throughput key (#2278)

This commit is contained in:
Jack Danger 2019-07-04 03:13:25 -07:00 committed by GitHub
parent 75d9707e8e
commit f6dd3ab959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ class DynamoHandler(BaseResponse):
when BillingMode is PAY_PER_REQUEST')
throughput = None
else: # Provisioned (default billing mode)
throughput = body["ProvisionedThroughput"]
throughput = body.get("ProvisionedThroughput")
# getting the schema
key_schema = body['KeySchema']
# getting attribute definition