From c4001baf47bbfbbe5e066fdb37ce7ea5f254971d Mon Sep 17 00:00:00 2001 From: Xu Wu Date: Tue, 21 Jan 2025 09:59:59 +0800 Subject: [PATCH] fix typo --- .../services/postgres/postgresql_flexible_server_resource.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/services/postgres/postgresql_flexible_server_resource.go b/internal/services/postgres/postgresql_flexible_server_resource.go index 6182127be373..e77c571b673e 100644 --- a/internal/services/postgres/postgresql_flexible_server_resource.go +++ b/internal/services/postgres/postgresql_flexible_server_resource.go @@ -335,7 +335,6 @@ func resourcePostgresqlFlexibleServer() *pluginsdk.Resource { }, CustomizeDiff: pluginsdk.CustomDiffWithAll(func(ctx context.Context, d *pluginsdk.ResourceDiff, v interface{}) error { - // as create_mode should never change after creation, we can ignore it when checking for version changes if d.HasChange("version") { oldVersionVal, newVersionVal := d.GetChange("version") @@ -350,7 +349,7 @@ func resourcePostgresqlFlexibleServer() *pluginsdk.Resource { if d.HasChange("create_mode") { // if create_mode is set to `Update`, then we can update it rather than force new - if d.Get("create_mode").(string) != string(servers.CreateModeForUpdateUpdate) { + if d.Get("create_mode").(string) == string(servers.CreateModeForUpdateUpdate) { return nil } d.ForceNew("create_mode")