Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Add
get vminfoto the new cli, I had to addNewVmRefFromApiin order to properly get the guest information from API only with the Id.list of changes :
get vminfoto the new clisdk.NewVmRefFromApito create a new VmRef with all information from API only with the VmIdTest
This changes can be tested by creating a vm and then retrieving the info with
proxmox-api-go get vminfo <id>, here is a snippet that should do the work :It should show :
{ "id": 123, "node": "pve", "bios": "seabios", "boot": "order=ide2;net0", "cpu": { "cores": 1, "type": "host" }, "description": "", "hotplug": "network,disk,usb", "memory": { "capacity": 2048 }, "name": "test-qemu01", "protection": false, "kvm": true, "ostype": "l26", "scsihw": "virtio-scsi-pci", "smbios1": "uuid=4cad0e7e-046b-4776-aa8d-9985e295f1b0", "tablet": true }fixes #513