Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hamiltop committed Jun 12, 2018
1 parent 445d1c8 commit cddec42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dynamodb_client/dynamo.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func scopedTabledDescriptions(tds map[string]*dynamodb.TableDescription, scope s
scopedTds := make(map[string]*dynamodb.TableDescription, len(tds))
for name, td := range tds {
newTd := *td
newTd.TableName = aws.String(fmt.Sprintf("%s_%s", scope, name))
newTd.TableName = aws.String(fmt.Sprintf("%s-%s", scope, name))
scopedTds[name] = &newTd
}
return scopedTds
Expand Down Expand Up @@ -98,7 +98,7 @@ func (dc *DynamoClient) CreateTables() error {
return err
}
fmt.Printf("Creating table %s \n", tableName)
tableClient.Create(context.Background())
err = tableClient.Create(context.Background())
if err != nil {
if awsErr, ok := err.(awserr.Error); ok {
fmt.Printf("%s and %s\n", awsErr.Error(), awsErr.Code())
Expand Down

0 comments on commit cddec42

Please sign in to comment.