Skip to content

Commit f5a656c

Browse files
Mia-Crossremyleone
authored andcommitted
doc(instance): update server's possible volume types + read more marketplace image info (scaleway#3116)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 44e9c78 commit f5a656c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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/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)