Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxu92 committed Jan 21, 2025
1 parent 6bb5ef4 commit c4001ba
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit c4001ba

Please sign in to comment.