mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-05 05:24:01 +00:00
fix(vm): ignore ssd disk flag with virtio interface (#231)
This commit is contained in:
parent
722003ee5a
commit
1de9294766
@ -2488,9 +2488,12 @@ func resourceVirtualEnvironmentVMGetDiskDeviceObjects(
|
||||
diskDevice.Size = &sizeString
|
||||
diskDevice.SizeInt = &size
|
||||
diskDevice.IOThread = &ioThread
|
||||
diskDevice.SSD = &ssd
|
||||
diskDevice.Discard = &discard
|
||||
|
||||
if !strings.HasPrefix(diskInterface, "virtio") {
|
||||
diskDevice.SSD = &ssd
|
||||
}
|
||||
|
||||
if len(speedBlock) > 0 {
|
||||
speedLimitRead := speedBlock[mkResourceVirtualEnvironmentVMDiskSpeedRead].(int)
|
||||
speedLimitReadBurstable := speedBlock[mkResourceVirtualEnvironmentVMDiskSpeedReadBurstable].(int)
|
||||
|
Loading…
Reference in New Issue
Block a user