From 29e6b2b070d3af0e0502216ffdc1da3355ad7b3f Mon Sep 17 00:00:00 2001 From: Gary Donovan Date: Fri, 1 Jun 2018 08:38:35 +1000 Subject: [PATCH] Fix subtle typo --- moto/dynamodb/responses.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/moto/dynamodb/responses.py b/moto/dynamodb/responses.py index d4f832be2..990069a46 100644 --- a/moto/dynamodb/responses.py +++ b/moto/dynamodb/responses.py @@ -62,13 +62,13 @@ class DynamoHandler(BaseResponse): name = body['TableName'] key_schema = body['KeySchema'] - hash_hey = key_schema['HashKeyElement'] - hash_key_attr = hash_hey['AttributeName'] - hash_key_type = hash_hey['AttributeType'] + hash_key = key_schema['HashKeyElement'] + hash_key_attr = hash_key['AttributeName'] + hash_key_type = hash_key['AttributeType'] - range_hey = key_schema.get('RangeKeyElement', {}) - range_key_attr = range_hey.get('AttributeName') - range_key_type = range_hey.get('AttributeType') + range_key = key_schema.get('RangeKeyElement', {}) + range_key_attr = range_key.get('AttributeName') + range_key_type = range_key.get('AttributeType') throughput = body["ProvisionedThroughput"] read_units = throughput["ReadCapacityUnits"]