Telmate / proxmox-api-go

Consume the proxmox API in golang
MIT License
370 stars 234 forks source link

Include ConfigQemu.Agent when creating params struct even when 0 #326

Open mollstam opened 5 months ago

mollstam commented 5 months ago

The current code does not set params["agent"] to 0 when set to 0 in ConfigQemu.Agent, erroneously identifying 0 as "no value", making it never possible to e.g. update from agent 1 to 0. I believe this is an error, let me know if not. 😬