Skip to content

Commit 9657eb2

Browse files
committed
comments
1 parent ad4b065 commit 9657eb2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ resource "resource1" "res1" {
22
name = "name1"
33
}
44

5-
resource "mongodbatlas_cluster" "free_cluster" {
5+
resource "mongodbatlas_cluster" "free_cluster" { # comment in the resource
6+
# comment in own line
67
count = local.use_free_cluster ? 1 : 0
7-
project_id = var.project_id
8+
project_id = var.project_id # inline comment kept
89
name = var.cluster_name
9-
provider_name = "TENANT"
10+
provider_name = "TENANT" # inline comment for attribute moved is not kept
1011
backing_provider_name = "AWS"
1112
provider_region_name = var.region
1213
provider_instance_size_name = "M0"

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ resource "resource1" "res1" {
22
name = "name1"
33
}
44

5-
resource "mongodbatlas_advanced_cluster" "free_cluster" {
5+
resource "mongodbatlas_advanced_cluster" "free_cluster" { # comment in the resource
6+
# comment in own line
67
count = local.use_free_cluster ? 1 : 0
7-
project_id = var.project_id
8+
project_id = var.project_id # inline comment kept
89
name = var.cluster_name
910
cluster_type = "REPLICASET"
1011
replication_specs = [{

0 commit comments

Comments
 (0)