Skip to content

Commit bff5beb

Browse files
authored
fix: Fixes attributes paused, version_release_system and tags in advanced cluster resource (#1581)
* change Computed * revert num_shards change
1 parent dbc6112 commit bff5beb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

mongodbatlas/resource_mongodbatlas_advanced_cluster.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,16 @@ func resourceMongoDBAtlasAdvancedCluster() *schema.Resource {
118118
Type: schema.TypeSet,
119119
Optional: true,
120120
Set: HashFunctionForKeyValuePair,
121-
Computed: true,
122121
Deprecated: fmt.Sprintf(DeprecationByDateWithReplacement, "September 2024", "tags"),
123122
Elem: &schema.Resource{
124123
Schema: map[string]*schema.Schema{
125124
"key": {
126125
Type: schema.TypeString,
127126
Optional: true,
128-
Computed: true,
129127
},
130128
"value": {
131129
Type: schema.TypeString,
132130
Optional: true,
133-
Computed: true,
134131
},
135132
},
136133
},
@@ -154,7 +151,7 @@ func resourceMongoDBAtlasAdvancedCluster() *schema.Resource {
154151
"paused": {
155152
Type: schema.TypeBool,
156153
Optional: true,
157-
Default: false,
154+
Computed: true,
158155
},
159156
"pit_enabled": {
160157
Type: schema.TypeBool,
@@ -306,7 +303,7 @@ func resourceMongoDBAtlasAdvancedCluster() *schema.Resource {
306303
"version_release_system": {
307304
Type: schema.TypeString,
308305
Optional: true,
309-
Default: "LTS",
306+
Computed: true,
310307
ValidateFunc: validation.StringInSlice([]string{"LTS", "CONTINUOUS"}, false),
311308
},
312309
"advanced_configuration": clusterAdvancedConfigurationSchema(),

0 commit comments

Comments
 (0)