Skip to content

Commit cddec42

Browse files
committed
fix bugs
1 parent 445d1c8 commit cddec42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dynamodb_client/dynamo.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func scopedTabledDescriptions(tds map[string]*dynamodb.TableDescription, scope s
4848
scopedTds := make(map[string]*dynamodb.TableDescription, len(tds))
4949
for name, td := range tds {
5050
newTd := *td
51-
newTd.TableName = aws.String(fmt.Sprintf("%s_%s", scope, name))
51+
newTd.TableName = aws.String(fmt.Sprintf("%s-%s", scope, name))
5252
scopedTds[name] = &newTd
5353
}
5454
return scopedTds
@@ -98,7 +98,7 @@ func (dc *DynamoClient) CreateTables() error {
9898
return err
9999
}
100100
fmt.Printf("Creating table %s \n", tableName)
101-
tableClient.Create(context.Background())
101+
err = tableClient.Create(context.Background())
102102
if err != nil {
103103
if awsErr, ok := err.(awserr.Error); ok {
104104
fmt.Printf("%s and %s\n", awsErr.Error(), awsErr.Code())

0 commit comments

Comments
 (0)