Skip to content

Commit 9edcf52

Browse files
authored
fix: Adds "state_name" to keepUnknown list to prevent copying volatile attributes from state (#3040)
1 parent cacb830 commit 9edcf52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/service/advancedclustertpf/plan_modifier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func useStateForUnknowns(ctx context.Context, diags *diag.Diagnostics, plan, sta
2222
}
2323

2424
func determineKeepUnknowns(upgradeRequest *admin.LegacyAtlasTenantClusterUpgradeRequest, patchReq *admin.ClusterDescription20240805) []string {
25-
keepUnknown := []string{"connection_strings"} // ConnectionStrings is volatile and should not be copied from state
25+
keepUnknown := []string{"connection_strings", "state_name"} // Volatile attributes, should not be copied from state
2626
if upgradeRequest != nil {
2727
// TenantUpgrade changes a few root level fields that are normally ok to use state values for
2828
keepUnknown = append(keepUnknown, "disk_size_gb", "cluster_id", "replication_specs", "backup_enabled", "create_date")

0 commit comments

Comments
 (0)