Skip to content

Commit 25f3666

Browse files
authored
INTMDB-259: Fix issue when create a tenant cluster without auto_scaling_disk_gb (#575)
* fix issue when create a tenant cluster without auto_scaling_disk_gb_enabled param * remove innecessary comment
1 parent f712520 commit 25f3666

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

mongodbatlas/resource_mongodbatlas_cluster.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ func resourceMongoDBAtlasCluster() *schema.Resource {
6262
},
6363
"auto_scaling_disk_gb_enabled": {
6464
Type: schema.TypeBool,
65-
Default: true,
6665
Optional: true,
6766
},
6867
"auto_scaling_compute_enabled": {
@@ -418,9 +417,8 @@ func resourceMongoDBAtlasClusterCreate(ctx context.Context, d *schema.ResourceDa
418417
return diag.FromErr(fmt.Errorf("`auto_scaling_disk_gb_enabled` cannot be true when provider name is TENANT"))
419418
}
420419

421-
autoScaling = &matlas.AutoScaling{
422-
DiskGBEnabled: pointy.Bool(false),
423-
}
420+
autoScaling = nil
421+
424422
if instanceSizeName, ok := d.GetOk("provider_instance_size_name"); ok {
425423
if instanceSizeName == "M2" {
426424
if diskSizeGB, ok := d.GetOk("disk_size_gb"); ok {

mongodbatlas/resource_mongodbatlas_cluster_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,6 @@ func testAccMongoDBAtlasClusterConfigTenant(projectID, name, instanceSize, diskS
15381538
provider_instance_size_name = "%s"
15391539
//These must be the following values
15401540
mongo_db_major_version = "%s"
1541-
auto_scaling_disk_gb_enabled = false
15421541
}
15431542
`, projectID, name, diskSize, instanceSize, majorDBVersion)
15441543
}

0 commit comments

Comments
 (0)