mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[PR #201] [MERGED] fix: setting params with bool pointers #308
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#308
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/201
Author: @BenediktBertsch
Created: 10/3/2022
Status: ✅ Merged
Merged: 10/3/2022
Merged by: @mleone87
Base:
master← Head:master📝 Commits (3)
b34e59efix: setting params with bool pointers248e6b0fix: get the real value for the parameter454a406simplify code and delete not needed util functions📊 Changes
1 file changed (+16 additions, -4 deletions)
View changed files
📝
proxmox/config_qemu.go(+16 -4)📄 Description
Fixes the current state for proxmox api for the createQemu JSON Sample.
Previous error message was:
error creating VM: 400 Parameter verification failed., error status: {"data":null,"errors":{"numa":"type check ('boolean') failed - got '<nil>'","kvm":"type check ('boolean') failed - got '<nil>'","onboot":"type check ('boolean') failed - got '<nil>'","tablet":"type check ('boolean') failed - got '<nil>'"}} (params: map[agent:0 args: boot: cores:2 cpu: description: hostpci0:host=0000:01:00.1,rombar=0 hotplug: ide2:local:iso/ubuntu-20.04.3-live-server-amd64.iso,media=cdrom kvm:<nil> machine: memory:2048 name:golang1.test.com net0:virtio=72:33:57:71:7C:6D numa:<nil> onboot:<nil> ostype:l26 sockets:1 startup: tablet:<nil> tags: virtio0:Storage10TB:80 vmid:103])🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.