Skip to content

Commit 2485cc3

Browse files
authored
doc(baremetal): correct attribut name allow_disabled to include_disabled (#3417)
1 parent 3f5b763 commit 2485cc3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/data-sources/baremetal_offer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ data "scaleway_baremetal_offer" "my_offer" {
3131

3232
- `offer_id` - (Optional) The offer id. Only one of `name` and `offer_id` should be specified.
3333

34-
- `allow_disabled` - (Optional, default `false`) Include disabled offers.
34+
- `include_disabled` - (Optional, default `false`) Include disabled offers.
3535

3636
- `zone` - (Defaults to [provider](../index.md#zone) `zone`) The [zone](../guides/regions_and_zones.md#zones) in which the offer should be created.
3737

internal/services/baremetal/offer_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func dataSourceOfferRead(ctx context.Context, d *schema.ResourceData, m any) dia
175175
for _, offer := range res.Offers {
176176
if offer.Name == d.Get("name") {
177177
if !offer.Enable && !d.Get("include_disabled").(bool) {
178-
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))
178+
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))
179179
}
180180

181181
matches = append(matches, offer)

templates/data-sources/baremetal_offer.md.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ data "scaleway_baremetal_offer" "my_offer" {
3131

3232
- `offer_id` - (Optional) The offer id. Only one of `name` and `offer_id` should be specified.
3333

34-
- `allow_disabled` - (Optional, default `false`) Include disabled offers.
34+
- `include_disabled` - (Optional, default `false`) Include disabled offers.
3535

3636
- `zone` - (Defaults to [provider](../index.md#zone) `zone`) The [zone](../guides/regions_and_zones.md#zones) in which the offer should be created.
3737

0 commit comments

Comments
 (0)