Skip to content

Commit 5c0c264

Browse files
committed
more comments
1 parent 8e129d8 commit 5c0c264

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

internal/hcl/testdata/clu2adv/free_cluster_with_count.in.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ resource "resource1" "res1" {
33
}
44

55
resource "mongodbatlas_cluster" "free_cluster" { # comment in the resource
6-
# comment in own line
6+
# comment in own line in the beginning
77
count = local.use_free_cluster ? 1 : 0
88
project_id = var.project_id # inline comment kept
99
name = var.cluster_name
10+
# comment in own line in the middle is deleted
1011
provider_name = "TENANT" # inline comment for attribute moved is not kept
1112
backing_provider_name = "AWS"
1213
provider_region_name = var.region
1314
provider_instance_size_name = "M0"
15+
# comment in own line at the end happens before replication_specs
1416
}
1517

1618
data "mongodbatlas_cluster" "cluster2" {

internal/hcl/testdata/clu2adv/free_cluster_with_count.out.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ resource "resource1" "res1" {
33
}
44

55
resource "mongodbatlas_advanced_cluster" "free_cluster" { # comment in the resource
6-
# comment in own line
7-
count = local.use_free_cluster ? 1 : 0
8-
project_id = var.project_id # inline comment kept
9-
name = var.cluster_name
6+
# comment in own line in the beginning
7+
count = local.use_free_cluster ? 1 : 0
8+
project_id = var.project_id # inline comment kept
9+
name = var.cluster_name
10+
# comment in own line at the end happens before replication_specs
1011
cluster_type = "REPLICASET"
1112
replication_specs = [{
1213
region_configs = [{

0 commit comments

Comments
 (0)