Skip to content

Commit c082f1f

Browse files
committed
don't produce use_replication_spec_per_shard in data sources
1 parent d3b06dc commit c082f1f

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

internal/convert/clu2adv.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ func convertDataSource(block *hclwrite.Block) bool {
9595
}
9696
if newName, found := convertMap[getResourceName(block)]; found {
9797
setResourceName(block, newName)
98-
block.Body().SetAttributeValue(nUseRepSpecsPerShard, cty.True)
9998
return true
10099
}
101100
return false

internal/convert/const.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ const (
7070
nZoneName = "zone_name"
7171
nKey = "key"
7272
nValue = "value"
73-
nUseRepSpecsPerShard = "use_replication_spec_per_shard"
7473
nMoved = "moved"
7574
nFrom = "from"
7675
nTo = "to"

internal/convert/testdata/clu2adv/data_sources.out.tf

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
data "mongodbatlas_advanced_cluster" "singular" {
22
# data source content is kept - singular
3-
project_id = mongodbatlas_advanced_cluster.example.project_id
4-
name = mongodbatlas_advanced_cluster.example.name
5-
depends_on = [mongodbatlas_privatelink_endpoint_service.example_endpoint]
6-
use_replication_spec_per_shard = true
3+
project_id = mongodbatlas_advanced_cluster.example.project_id
4+
name = mongodbatlas_advanced_cluster.example.name
5+
depends_on = [mongodbatlas_privatelink_endpoint_service.example_endpoint]
76

87
# Generated by atlas-cli-plugin-terraform.
98
# Please review the changes and confirm that references to this resource are updated.
109
}
1110

1211
data "mongodbatlas_advanced_clusters" "plural" {
1312
# data source content is kept - plural
14-
project_id = mongodbatlas_advanced_cluster.example.project_id
15-
use_replication_spec_per_shard = true
13+
project_id = mongodbatlas_advanced_cluster.example.project_id
1614

1715
# Generated by atlas-cli-plugin-terraform.
1816
# Please review the changes and confirm that references to this resource are updated.

0 commit comments

Comments
 (0)