File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
internal/services/marketplace Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 99 "github.com/scaleway/scaleway-sdk-go/scw"
1010 "github.com/scaleway/terraform-provider-scaleway/v2/internal/datasource"
1111 "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/zonal"
12+ "github.com/scaleway/terraform-provider-scaleway/v2/internal/verify"
1213)
1314
1415func DataSourceImage () * schema.Resource {
@@ -27,10 +28,11 @@ func DataSourceImage() *schema.Resource {
2728 Description : "The instance commercial type of the desired image" ,
2829 },
2930 "image_type" : {
30- Type : schema .TypeString ,
31- Optional : true ,
32- Default : "instance_local" , // Keep the old default as default to avoid a breaking change.
33- Description : "The type of the desired image, instance_local or instance_sbs" ,
31+ Type : schema .TypeString ,
32+ Optional : true ,
33+ Default : "instance_local" , // Keep the old default as default to avoid a breaking change.
34+ Description : "The type of the desired image, instance_local or instance_sbs" ,
35+ ValidateDiagFunc : verify .ValidateEnum [marketplace.LocalImageType ](),
3436 },
3537 "zone" : zonal .Schema (),
3638 },
You can’t perform that action at this time.
0 commit comments