Skip to content

Commit

Permalink
take comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexinthesky committed Feb 22, 2023
1 parent 4fcaf19 commit 8f0e15f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/rds/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ func Configure(p *config.Provider) {
if a, ok := attr["username"].(string); ok {
conn["username"] = []byte(a)
}

conn["port"] = []byte(fmt.Sprintf("%v", attr["port"]))
if a, ok := attr["port"]; ok {
conn["port"] = []byte(fmt.Sprintf("%v", a))
}

return conn, nil
}
Expand Down

0 comments on commit 8f0e15f

Please sign in to comment.