[GH-ISSUE #171] VirtualMachine states are broken since removing QMPStatus conditions #41

Closed
opened 2026-03-03 15:29:49 +03:00 by kerem · 3 comments
Owner

Originally created by @rybnico on GitHub (Oct 8, 2024).
Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/171

The fix for #139 (#166) breaks some VirtualMachine state functions.

Since the value of QMPStatus is not taken into account, the following functions are no longer reliable:

  • IsRunning returns true even if the VirtualMachine is paused.
  • IsPaused returns true even if the VirtualMachine is running (my fix in #169 is wrong because there is no paused state).
  • IsStopped returns true even if the VirtualMachine is hibernated.

See PR #170

Originally created by @rybnico on GitHub (Oct 8, 2024). Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/171 The fix for #139 (#166) breaks some VirtualMachine state functions. Since the value of `QMPStatus` is not taken into account, the following functions are no longer reliable: * `IsRunning` returns `true` even if the VirtualMachine is paused. * `IsPaused` returns `true` even if the VirtualMachine is running (my fix in #169 is wrong because there is no `paused` state). * `IsStopped` returns `true` even if the VirtualMachine is hibernated. See PR #170
kerem closed this issue 2026-03-03 15:29:50 +03:00
Author
Owner

@rybnico commented on GitHub (Oct 19, 2024):

Fixed by #170
@luthermonson Would you mind releasing a version with this fix?

<!-- gh-comment-id:2423740682 --> @rybnico commented on GitHub (Oct 19, 2024): Fixed by #170 @luthermonson Would you mind releasing a version with this fix?
Author
Owner

@luthermonson commented on GitHub (Oct 19, 2024):

sure let me do it now

<!-- gh-comment-id:2424040358 --> @luthermonson commented on GitHub (Oct 19, 2024): sure let me do it now
Author
Owner

@luthermonson commented on GitHub (Oct 19, 2024):

https://github.com/luthermonson/go-proxmox/releases/tag/v0.2.1

<!-- gh-comment-id:2424040716 --> @luthermonson commented on GitHub (Oct 19, 2024): https://github.com/luthermonson/go-proxmox/releases/tag/v0.2.1
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-proxmox#41
No description provided.