Skip to content

Commit cb6009a

Browse files
committed
Fix ipam
1 parent 89f8046 commit cb6009a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

internal/services/ipam/ips_data_source.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/zonal"
1313
"github.com/scaleway/terraform-provider-scaleway/v2/internal/services/account"
1414
"github.com/scaleway/terraform-provider-scaleway/v2/internal/types"
15+
"github.com/scaleway/terraform-provider-scaleway/v2/internal/verify"
1516
)
1617

1718
func DataSourceIPs() *schema.Resource {
@@ -71,7 +72,12 @@ func DataSourceIPs() *schema.Resource {
7172
Optional: true,
7273
Description: "IP Type (ipv4, ipv6) to filter for",
7374
},
74-
"zonal": zonal.Schema(),
75+
"zonal": {
76+
Type: schema.TypeString,
77+
Description: "The zone you want to filter upon",
78+
Optional: true,
79+
ValidateDiagFunc: verify.ValidateStringInSliceWithWarning(zonal.AllZones(), "zone"),
80+
},
7581
"region": regional.Schema(),
7682
"project_id": account.ProjectIDSchema(),
7783
"organization_id": account.OrganizationIDSchema(),

0 commit comments

Comments
 (0)