Skip to content

Commit e0bfb03

Browse files
authored
Merge branch 'master' into compress_rdb
2 parents c82ad3b + a6a7a13 commit e0bfb03

File tree

5 files changed

+205
-305
lines changed

5 files changed

+205
-305
lines changed

docs/resources/instance_server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ To retrieve more information by label please use: ```scw marketplace image get l
214214
To find the right size use [this endpoint](https://www.scaleway.com/en/developers/api/instance/#path-instances-list-all-instances) and
215215
check the `volumes_constraint.{min|max}_size` (in bytes) for your `commercial_type`.
216216
Depending on `volume_type`, updates to this field may recreate a new resource.
217-
- `volume_type` - (Optional) Volume type of root volume, can be `b_ssd`, `l_ssd` or `sbs_volume`, default value depends on server type
217+
- `volume_type` - (Optional) Volume type of root volume, can be `l_ssd` or `sbs_volume`, default value depends on server type
218218
- `delete_on_termination` - (Defaults to `true`) Forces deletion of the root volume on instance termination.
219219
- `sbs_iops` - (Optional) Choose IOPS of your sbs volume, has to be used with `sbs_volume` for root volume type.
220220

internal/services/baremetal/offer_data_source_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ func TestAccDataSourceOffer_Basic(t *testing.T) {
4848
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "include_disabled", "false"),
4949
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "bandwidth", "1000000000"),
5050
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "commercial_range", "beryllium"),
51-
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "stock", "available"), // skipping this as stocks vary too much
5251
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "cpu.0.name", "AMD EPYC 7232P"),
5352
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "cpu.0.core_count", "8"),
5453
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "cpu.0.frequency", "3100"),
@@ -100,7 +99,6 @@ func TestAccDataSourceOffer_SubscriptionPeriodHourly(t *testing.T) {
10099
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "include_disabled", "false"),
101100
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "bandwidth", "1000000000"),
102101
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "commercial_range", "beryllium"),
103-
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "stock", "available"), // skipping this as stocks vary too much
104102
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "cpu.0.name", "AMD EPYC 7232P"),
105103
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "cpu.0.core_count", "8"),
106104
resource.TestCheckResourceAttr("data.scaleway_baremetal_offer.test2", "cpu.0.frequency", "3100"),

internal/services/baremetal/testdata/data-source-offer-basic.cassette.yaml

Lines changed: 105 additions & 154 deletions
Large diffs are not rendered by default.

internal/services/baremetal/testdata/data-source-offer-subscription-period-hourly.cassette.yaml

Lines changed: 97 additions & 146 deletions
Large diffs are not rendered by default.

internal/services/marketplace/image_data_source.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ func DataSourceMarketplaceImageRead(ctx context.Context, d *schema.ResourceData,
5858
zonedID := datasource.NewZonedID(image.ID, zone)
5959
d.SetId(zonedID)
6060
_ = d.Set("zone", zone)
61-
_ = d.Set("label", d.Get("label"))
62-
_ = d.Set("instance_type", d.Get("type"))
61+
_ = d.Set("label", image.Label)
62+
_ = d.Set("instance_type", d.Get("instance_type").(string))
6363
_ = d.Set("image_type", image.Type)
6464

6565
return nil

0 commit comments

Comments
 (0)