mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-26 07:55:50 +03:00
[GH-ISSUE #260] Cannot convert LXC to template: POST /nodes/{node}/lxc/{id}/template #57
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#57
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 @chrisbenincasa on GitHub (May 11, 2023).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/260
The code for creating a template from a VmRef expects the API response to contain a Task ID it can wait on: https://github.com/Telmate/proxmox-api-go/blob/master/proxmox/client.go#L373-L381
However, a Task ID is only returned in the QEMU VM case: https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/template
When converting an LXC to a template, the response contains simply:
{data: null}: https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/lxc/{vmid}/templateThe client then returns an error:
Example request and response, outputted before erroneously failing