mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-26 07:55:50 +03:00
[GH-ISSUE #513] migrate: getVmInfo to guest infos #139
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#139
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?
Originally created by @NemoDacremont on GitHub (Nov 9, 2025).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/513
@NemoDacremont commented on GitHub (Nov 9, 2025):
maybe i'll call it just
vminfo, anyway I find a bug that leads to that :This is probably coming from NewConfigQemuFromApi
EDIT: this is more precisely because vmRef is poorly initialized and won't have defined node attribute. This leads to wrong url generated in
getGuestConfigfrom fileclient__api.golater@NemoDacremont commented on GitHub (Nov 9, 2025):
I worked on a working fix, I kind of had to introduced a new function
NewVmRefFromApi(ctx context.Context, vmId GuestId, client *Client) (vmr *VmRef, err error)I feel like it may be nice to have this function to reference a guest only by its ID, it is however a little less efficient since it has to loop over proxmox guest resources. I'll try to create the PR tomorrow