fix: remove unnecessary context

This commit is contained in:
yusing 2025-04-16 12:37:12 +08:00
parent bf429998e8
commit 3703b122dc

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