Skip to content

Commit

Permalink
feat(instance): remove support for export_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Jul 26, 2024
1 parent 3e8cc60 commit 7c08ce5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion docs/resources/instance_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ In addition to all arguments above, the following attributes are exported:
-> The `additional_volumes` block contains :
- `id` - The ID of the volume.
- `name` - The name of the volume.
- `export_uri` - The export URI of the volume.
- `size` - The size of the volume.
- `volume_type` - The type of volume, possible values are `l_ssd` and `b_ssd`.
- `creation_date` - Date of the volume creation.
Expand Down
4 changes: 0 additions & 4 deletions internal/services/instance/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ func ResourceImage() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"export_uri": {
Type: schema.TypeString,
Computed: true,
},
"size": {
Type: schema.TypeInt,
Computed: true,
Expand Down
1 change: 0 additions & 1 deletion internal/services/instance/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ func flattenImageExtraVolumes(volumes map[string]*instance.Volume, zone scw.Zone
volumeFlat := map[string]interface{}{
"id": zonal.NewIDString(zone, volume.ID),
"name": volume.Name,
"export_uri": volume.ExportURI,
"size": volume.Size,
"volume_type": volume.VolumeType,
"creation_date": volume.CreationDate,
Expand Down

0 comments on commit 7c08ce5

Please sign in to comment.