From 1091722d6fb49937fe481d7d3c3858440be57c8c Mon Sep 17 00:00:00 2001 From: Laure-di Date: Mon, 20 Oct 2025 15:30:02 +0200 Subject: [PATCH] doc(baremetal): correct attribut name allow_disabled to include_disabled --- docs/data-sources/baremetal_offer.md | 2 +- internal/services/baremetal/offer_data_source.go | 2 +- templates/data-sources/baremetal_offer.md.tmpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/data-sources/baremetal_offer.md b/docs/data-sources/baremetal_offer.md index bbd099f5bc..b7a7e990c8 100644 --- a/docs/data-sources/baremetal_offer.md +++ b/docs/data-sources/baremetal_offer.md @@ -31,7 +31,7 @@ data "scaleway_baremetal_offer" "my_offer" { - `offer_id` - (Optional) The offer id. Only one of `name` and `offer_id` should be specified. -- `allow_disabled` - (Optional, default `false`) Include disabled offers. +- `include_disabled` - (Optional, default `false`) Include disabled offers. - `zone` - (Defaults to [provider](../index.md#zone) `zone`) The [zone](../guides/regions_and_zones.md#zones) in which the offer should be created. diff --git a/internal/services/baremetal/offer_data_source.go b/internal/services/baremetal/offer_data_source.go index a71ba0695a..28a42e795d 100644 --- a/internal/services/baremetal/offer_data_source.go +++ b/internal/services/baremetal/offer_data_source.go @@ -175,7 +175,7 @@ func dataSourceOfferRead(ctx context.Context, d *schema.ResourceData, m any) dia for _, offer := range res.Offers { if offer.Name == d.Get("name") { if !offer.Enable && !d.Get("include_disabled").(bool) { - return diag.FromErr(fmt.Errorf("%s offer %s (%s) found in zone %s but is disabled. Add allow_disabled=true in your terraform config to use it", offer.SubscriptionPeriod, offer.Name, offer.ID, zone)) + return diag.FromErr(fmt.Errorf("%s offer %s (%s) found in zone %s but is disabled. Add include_disabled=true in your terraform config to use it", offer.SubscriptionPeriod, offer.Name, offer.ID, zone)) } matches = append(matches, offer) diff --git a/templates/data-sources/baremetal_offer.md.tmpl b/templates/data-sources/baremetal_offer.md.tmpl index bbd099f5bc..b7a7e990c8 100644 --- a/templates/data-sources/baremetal_offer.md.tmpl +++ b/templates/data-sources/baremetal_offer.md.tmpl @@ -31,7 +31,7 @@ data "scaleway_baremetal_offer" "my_offer" { - `offer_id` - (Optional) The offer id. Only one of `name` and `offer_id` should be specified. -- `allow_disabled` - (Optional, default `false`) Include disabled offers. +- `include_disabled` - (Optional, default `false`) Include disabled offers. - `zone` - (Defaults to [provider](../index.md#zone) `zone`) The [zone](../guides/regions_and_zones.md#zones) in which the offer should be created.