diff --git a/docs/data-sources/vpc_subnet_ids.md b/docs/data-sources/vpc_subnet_ids.md index bd715345e9..6c0fb11555 100644 --- a/docs/data-sources/vpc_subnet_ids.md +++ b/docs/data-sources/vpc_subnet_ids.md @@ -20,7 +20,7 @@ data "huaweicloud_vpc_subnet_ids" "subnet_ids" { data "huaweicloud_vpc_subnet" "subnet" { count = length(data.huaweicloud_vpc_subnet_ids.subnet_ids.ids) - id = tolist(data.huaweicloud_vpc_subnet_ids.subnet_ids.ids)[count.index] + id = data.huaweicloud_vpc_subnet_ids.subnet_ids.ids[count.index] } output "subnet_cidr_blocks" { diff --git a/huaweicloud/data_source_huaweicloud_vpc_ids.go b/huaweicloud/data_source_huaweicloud_vpc_ids.go index 8cd89f2854..2c2bd22163 100644 --- a/huaweicloud/data_source_huaweicloud_vpc_ids.go +++ b/huaweicloud/data_source_huaweicloud_vpc_ids.go @@ -19,10 +19,9 @@ func dataSourceVirtualPrivateCloudVpcIdsV1() *schema.Resource { Computed: true, }, "ids": { - Type: schema.TypeSet, + Type: schema.TypeList, Computed: true, Elem: &schema.Schema{Type: schema.TypeString}, - Set: schema.HashString, }, }, } diff --git a/huaweicloud/data_source_huaweicloud_vpc_route_ids.go b/huaweicloud/data_source_huaweicloud_vpc_route_ids.go index 1951f0c8b0..ccff3c68ed 100644 --- a/huaweicloud/data_source_huaweicloud_vpc_route_ids.go +++ b/huaweicloud/data_source_huaweicloud_vpc_route_ids.go @@ -23,10 +23,9 @@ func dataSourceVPCRouteIdsV2() *schema.Resource { Required: true, }, "ids": { - Type: schema.TypeSet, + Type: schema.TypeList, Computed: true, Elem: &schema.Schema{Type: schema.TypeString}, - Set: schema.HashString, }, }, } diff --git a/huaweicloud/data_source_huaweicloud_vpc_subnet_ids.go b/huaweicloud/data_source_huaweicloud_vpc_subnet_ids.go index 8a93c06049..ff33edfefb 100644 --- a/huaweicloud/data_source_huaweicloud_vpc_subnet_ids.go +++ b/huaweicloud/data_source_huaweicloud_vpc_subnet_ids.go @@ -23,10 +23,9 @@ func DataSourceVpcSubnetIdsV1() *schema.Resource { Required: true, }, "ids": { - Type: schema.TypeSet, + Type: schema.TypeList, Computed: true, Elem: &schema.Schema{Type: schema.TypeString}, - Set: schema.HashString, }, }, }