diff --git a/proxmox/config_qemu.go b/proxmox/config_qemu.go index ae9e9220..30d661de 100644 --- a/proxmox/config_qemu.go +++ b/proxmox/config_qemu.go @@ -182,15 +182,14 @@ func (config ConfigQemu) mapToApiValues(currentConfig ConfigQemu) (rebootRequire params = map[string]interface{}{} + params["agent"] = config.Agent + if config.VmID != 0 { params["vmid"] = config.VmID } if config.Args != "" { params["args"] = config.Args } - if config.Agent != 0 { - params["agent"] = config.Agent - } if config.Balloon >= 1 { params["balloon"] = config.Balloon }