Skip to content

Commit

Permalink
update comments and refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinshenker committed Oct 25, 2023
1 parent f919f81 commit a5128ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion digitalocean/database/resource_database_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func resourceDigitalOceanDatabaseUserCreate(ctx context.Context, d *schema.Resou
d.SetId(makeDatabaseUserID(clusterID, user.Name))
log.Printf("[INFO] Database User Name: %s", user.Name)

// set userSettings only on create, due to Create responses including `settings` but Get responses not including them
// set userSettings only on CreateUser, due to CreateUser responses including `settings` but GetUser responses not including `settings`
if err := d.Set("settings", flattenUserSettings(user.Settings)); err != nil {
return diag.Errorf("Error setting user settings: %#v", err)
}
Expand Down

0 comments on commit a5128ef

Please sign in to comment.