mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
fix: remove unnecessary context
This commit is contained in:
parent
bf429998e8
commit
3703b122dc
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue