Skip to content

Commit 139a3a4

Browse files
committed
Remove device_path from server volumes (never populated by API)
1 parent b446738 commit 139a3a4

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

cloudscale/resource_cloudscale_server.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ func getServerSchema(t SchemaType) map[string]*schema.Schema {
7575
Type: schema.TypeString,
7676
Computed: true,
7777
},
78-
"device_path": {
79-
Type: schema.TypeString,
80-
Computed: true,
81-
},
8278
"uuid": {
8379
Type: schema.TypeString,
8480
Computed: true,
@@ -489,7 +485,6 @@ func gatherServerResourceData(server *cloudscale.Server) ResourceDataRaw {
489485
for _, volume := range server.Volumes {
490486
v := make(map[string]any)
491487
v["type"] = volume.Type
492-
v["device_path"] = volume.DevicePath
493488
v["size_gb"] = volume.SizeGB
494489
v["uuid"] = volume.UUID
495490
volumesMaps = append(volumesMaps, v)

docs/data-sources/server.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ In addition to the arguments listed above, the following computed attributes are
3333
* `flavor_slug` - The slug (name) of the flavor used by this server.
3434
* `image_slug` - The slug (name) of the image (or custom image) used by the server.
3535
* `volumes` - A list of volume objects attached to this server. Each volume object has three attributes:
36-
* `device_path` - The path (string) to the volume on your server (e.g. `/dev/vda`)
3736
* `size_gb` - The size (int) of the volume in GB. Typically matches `volume_size_gb` or `bulk_volume_size_gb`.
3837
* `type` - A string. Either `ssd` or `bulk`.
3938
* `public_ipv4_address` - The first `public` IPv4 address of this server. The returned IP address may be `""` if the server does not have a public IPv4.

docs/resources/server.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ In addition to the arguments listed above, the following computed attributes are
8484
* `ssh_fingerprints` - A list of SSH host key fingerprints (strings) of this server.
8585
* `ssh_host_keys` - A list of SSH host keys (strings) of this server.
8686
* `volumes` - A list of volume objects attached to this server. Each volume object has three attributes:
87-
* `device_path` - The path (string) to the volume on your server (e.g. `/dev/vda`)
8887
* `size_gb` - The size (int) of the volume in GB. Typically matches `volume_size_gb` or `bulk_volume_size_gb`.
8988
* `type` - A string. Either `ssd` or `bulk`.
9089
* `public_ipv4_address` - The first `public` IPv4 address of this server. The returned IP address may be `""` if the server does not have a public IPv4.

0 commit comments

Comments
 (0)