diff --git a/docs/data-sources/baremetal_offer.md b/docs/data-sources/baremetal_offer.md index bbd099f5b..b7a7e990c 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 a71ba0695..28a42e795 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 bbd099f5b..b7a7e990c 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.