Skip to content

Commit 24c5945

Browse files
committed
Fix python migrations
1 parent 61dd555 commit 24c5945

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

testdata/migration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44

55
def create_table(tableName):
6-
dynamodb = boto3.resource('dynamodb', endpoint_url='http://localhost:8000')
6+
dynamodb = boto3.resource('dynamodb', endpoint_url='http://localhost:8000', region_name='us-east-1')
77
try:
88
dynamodb.create_table(
99
TableName=tableName,

testdata/seed_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def import_csv(tableName, fileName):
9-
dynamodb = boto3.resource('dynamodb', endpoint_url='http://localhost:8000')
9+
dynamodb = boto3.resource('dynamodb', endpoint_url='http://localhost:8000', region_name='us-east-1')
1010
dynamodb_table = dynamodb.Table(tableName)
1111
count = 0
1212

0 commit comments

Comments
 (0)