From 8334663b5fb473ef28e397306ff4a81aa0d4489b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20J=C4=99drych?= <22376195+oreze@users.noreply.github.com> Date: Tue, 16 Jul 2024 15:19:42 +0200 Subject: [PATCH] fix: typo, retrieve valid WriteLimit.Concurrent value --- proxmox/resource_vm_qemu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox/resource_vm_qemu.go b/proxmox/resource_vm_qemu.go index 83e1250f..da883a21 100755 --- a/proxmox/resource_vm_qemu.go +++ b/proxmox/resource_vm_qemu.go @@ -2035,7 +2035,7 @@ func mapFormStruct_QemuDiskBandwidth(params map[string]interface{}, config pxapi params["mbps_r_burst"] = float64(config.MBps.ReadLimit.Burst) params["mbps_r_concurrent"] = float64(config.MBps.ReadLimit.Concurrent) params["mbps_wr_burst"] = float64(config.MBps.WriteLimit.Burst) - params["mbps_wr_concurrent"] = float64(config.MBps.ReadLimit.Burst) + params["mbps_wr_concurrent"] = float64(config.MBps.WriteLimit.Concurrent) params["iops_r_burst"] = int(config.Iops.ReadLimit.Burst) params["iops_r_burst_length"] = int(config.Iops.ReadLimit.BurstDuration) params["iops_r_concurrent"] = int(config.Iops.ReadLimit.Concurrent)