From a5128efe54acf33e91e6d029ef092c6f1c892727 Mon Sep 17 00:00:00 2001 From: Daniel Weinshenker Date: Wed, 25 Oct 2023 15:28:38 -0700 Subject: [PATCH] update comments and refactor --- digitalocean/database/resource_database_user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/digitalocean/database/resource_database_user.go b/digitalocean/database/resource_database_user.go index edd38e50e..debbf25df 100644 --- a/digitalocean/database/resource_database_user.go +++ b/digitalocean/database/resource_database_user.go @@ -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) }