Skip to content

Commit c1642a1

Browse files
authored
v1.8.0 - Fix test failures (#1022)
* Reverted change to replicationSpecsHashSet which cast region_configs as a slice of interface * Added oplog_min_retention_hours to cluster advanced configuration schema
1 parent 597c573 commit c1642a1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

mongodbatlas/data_source_mongodbatlas_cluster.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,11 @@ func clusterAdvancedConfigurationSchemaComputed() *schema.Schema {
535535
Type: schema.TypeInt,
536536
Computed: true,
537537
},
538+
"oplog_min_retention_hours": {
539+
Type: schema.TypeInt,
540+
Optional: true,
541+
Computed: true,
542+
},
538543
},
539544
},
540545
}

mongodbatlas/resource_mongodbatlas_advanced_cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ func replicationSpecsHashSet(v interface{}) int {
13051305
var buf bytes.Buffer
13061306
m := v.(map[string]interface{})
13071307
buf.WriteString(fmt.Sprintf("%d", m["num_shards"].(int)))
1308-
buf.WriteString(fmt.Sprintf("%+v", m["region_configs"].([]interface{})))
1308+
buf.WriteString(fmt.Sprintf("%+v", m["region_configs"].(*schema.Set)))
13091309
buf.WriteString(m["zone_name"].(string))
13101310
return schema.HashString(buf.String())
13111311
}

0 commit comments

Comments
 (0)