0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 10:33:46 +00:00

Fix storing of "disk.iothread" in TF state

Add missing doc entry

Relates to #87
This commit is contained in:
Pavel Boldyrev 2022-07-29 21:54:58 -04:00
parent 7cb22ccec8
commit 442b60c8f9
No known key found for this signature in database
GPG Key ID: 02A24794ADAC7455
2 changed files with 7 additions and 0 deletions

View File

@ -195,6 +195,7 @@ output "ubuntu_vm_public_key" {
* `read_burstable` - (Optional) The maximum burstable read speed in megabytes per second.
* `write` - (Optional) The maximum write speed in megabytes per second.
* `write_burstable` - (Optional) The maximum burstable write speed in megabytes per second.
* `iothread` - (Optional) Whether to use iothreads for this disk (defaults to `false`).
* `initialization` - (Optional) The cloud-init configuration.
* `datastore_id` - (Optional) The identifier for the datastore to create the cloud-init disk in (defaults
to `local-lvm`).

View File

@ -2619,6 +2619,12 @@ func resourceVirtualEnvironmentVMReadCustom(ctx context.Context, d *schema.Resou
disk[mkResourceVirtualEnvironmentVMDiskSpeed] = []interface{}{}
}
if dd.IOThread != nil {
disk[mkResourceVirtualEnvironmentVMDiskIOThread] = *dd.IOThread
} else {
disk[mkResourceVirtualEnvironmentVMDiskIOThread] = false
}
diskMap[di] = disk
}