Skip to content

Commit

Permalink
fix to not emit "agent" from params when 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mollstam committed Apr 11, 2024
1 parent 2f0ce9e commit db6a15f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions proxmox/config_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit db6a15f

Please sign in to comment.