From 7c0a64b52c194d969b2e4025971e054a6dec138e Mon Sep 17 00:00:00 2001 From: Xavier Serrat Bordas Date: Sat, 16 Mar 2024 11:44:08 +0100 Subject: [PATCH] Add "protection" field in ConfigQemu.mapToApiValues --- proxmox/config_qemu.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxmox/config_qemu.go b/proxmox/config_qemu.go index ad26b834..9fcde684 100644 --- a/proxmox/config_qemu.go +++ b/proxmox/config_qemu.go @@ -368,6 +368,9 @@ func (config ConfigQemu) mapToApiValues(currentConfig ConfigQemu) (rebootRequire if config.Onboot != nil { params["onboot"] = *config.Onboot } + if config.Protection != nil { + params["protection"] = *config.Protection + } if config.QemuOs != "" { params["ostype"] = config.QemuOs }