Skip to content

Commit

Permalink
fix empty database name
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Oren committed Jan 31, 2023
1 parent d92a40b commit 54e93a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stackit/internal/resources/postgres-flex/instance/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ func (r Resource) createUser(ctx context.Context, plan *Instance, d *diag.Diagno
db := ""
if item.Database != nil {
db = *item.Database
if db == "" {
db = database // bypass API issue
}
}
if db == "" {
db = database // bypass API issue
}
pw := ""
if item.Password != nil {
Expand Down

0 comments on commit 54e93a6

Please sign in to comment.