Skip to content

Commit 7937681

Browse files
committed
get cmd result id param is now string
1 parent 6b35864 commit 7937681

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/pve/pve_lxc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,9 @@ func (s *PVELxcService) ExecAsync(id int, shell string, cmd string) (execId stri
630630
// a proxmox node instance.
631631
//
632632
// POST /custom-api/v1/cmd/{id} requires the "VM.Audit" permission.
633-
func (s *PVELxcService) GetCMDResult(id int) (result models.CMDExecution, err error) {
633+
func (s *PVELxcService) GetCMDResult(id string) (result models.CMDExecution, err error) {
634634
method := http.MethodGet
635-
path := fmt.Sprintf("/custom-api/v1/cmd/%d", id)
635+
path := fmt.Sprintf("/custom-api/v1/cmd/%s", id)
636636

637637
res := models.CMDExecution{}
638638
if err := s.api.client.sendCustomAPIRequest(method, path, nil, &res); err != nil {

0 commit comments

Comments
 (0)