Skip to content

Commit

Permalink
resource/alicloud_mongodb_instance: Fixed the read error in field rep…
Browse files Browse the repository at this point in the history
…lica_sets (#8123)
  • Loading branch information
MrWolong authored Jan 16, 2025
1 parent b5a6eef commit a54ee5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion alicloud/resource_alicloud_mongodb_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func resourceAliCloudMongoDBInstance() *schema.Resource {
Computed: true,
},
"replica_sets": {
Type: schema.TypeSet,
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 2 additions & 0 deletions alicloud/resource_alicloud_mongodb_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,7 @@ var AliCloudMongoDBInstanceMap0 = map[string]string{
"retention_period": CHECKSET,
"replica_set_name": CHECKSET,
"ssl_status": CHECKSET,
"replica_sets.#": CHECKSET,
}

var AliCloudMongoDBInstanceMap1 = map[string]string{
Expand All @@ -855,6 +856,7 @@ var AliCloudMongoDBInstanceMap1 = map[string]string{
"retention_period": CHECKSET,
"replica_set_name": CHECKSET,
"ssl_status": CHECKSET,
"replica_sets.#": CHECKSET,
}

func AliCloudMongoDBInstanceBasicDependence0(name string) string {
Expand Down

0 comments on commit a54ee5b

Please sign in to comment.