Merge branch 'feat/proxmox-idlewatcher' into feat/custom-json-marshaling

This commit is contained in:
yusing
2025-04-16 14:43:49 +08:00
parent c2b606e63e
commit feb9947543
2 changed files with 7 additions and 5 deletions

View File

@@ -42,9 +42,6 @@ const (
)
func (n *Node) LXCAction(ctx context.Context, vmid int, action LXCAction) error {
ctx, cancel := context.WithTimeout(ctx, proxmoxReqTimeout)
defer cancel()
var upid proxmox.UPID
if err := n.client.Post(ctx, fmt.Sprintf("/nodes/%s/lxc/%d/status/%s", n.name, vmid, action), nil, &upid); err != nil {
return err