diff --git a/docs/resources/instance_server.md b/docs/resources/instance_server.md index c629fa5df0..b07436d7b5 100644 --- a/docs/resources/instance_server.md +++ b/docs/resources/instance_server.md @@ -214,7 +214,7 @@ To retrieve more information by label please use: ```scw marketplace image get l To find the right size use [this endpoint](https://www.scaleway.com/en/developers/api/instance/#path-instances-list-all-instances) and check the `volumes_constraint.{min|max}_size` (in bytes) for your `commercial_type`. Depending on `volume_type`, updates to this field may recreate a new resource. - - `volume_type` - (Optional) Volume type of root volume, can be `b_ssd`, `l_ssd` or `sbs_volume`, default value depends on server type + - `volume_type` - (Optional) Volume type of root volume, can be `l_ssd` or `sbs_volume`, default value depends on server type - `delete_on_termination` - (Defaults to `true`) Forces deletion of the root volume on instance termination. - `sbs_iops` - (Optional) Choose IOPS of your sbs volume, has to be used with `sbs_volume` for root volume type. diff --git a/internal/services/marketplace/image_data_source.go b/internal/services/marketplace/image_data_source.go index eef6fd8fb2..2f6236739f 100644 --- a/internal/services/marketplace/image_data_source.go +++ b/internal/services/marketplace/image_data_source.go @@ -58,8 +58,8 @@ func DataSourceMarketplaceImageRead(ctx context.Context, d *schema.ResourceData, zonedID := datasource.NewZonedID(image.ID, zone) d.SetId(zonedID) _ = d.Set("zone", zone) - _ = d.Set("label", d.Get("label")) - _ = d.Set("instance_type", d.Get("type")) + _ = d.Set("label", image.Label) + _ = d.Set("instance_type", d.Get("instance_type").(string)) _ = d.Set("image_type", image.Type) return nil