[PR #169] [MERGED] Fix VirtualMachine.IsPaused #192

Closed
opened 2026-03-03 15:30:38 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/luthermonson/go-proxmox/pull/169
Author: @rybnico
Created: 10/5/2024
Status: Merged
Merged: 10/6/2024
Merged by: @luthermonson

Base: mainHead: fix-vm-is-paused


📝 Commits (1)

  • 873dfcf Fix VirtualMachine.IsPaused

📊 Changes

2 files changed (+35 additions, -1 deletions)

View changed files

📝 virtual_machine.go (+1 -1)
📝 virtual_machine_test.go (+34 -0)

📄 Description

Found a small bug in the VirtualMachine.IsPaused function:

The condition in the IsPaused function checks whether the VM is running, not whether it's in a pause state.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/luthermonson/go-proxmox/pull/169 **Author:** [@rybnico](https://github.com/rybnico) **Created:** 10/5/2024 **Status:** ✅ Merged **Merged:** 10/6/2024 **Merged by:** [@luthermonson](https://github.com/luthermonson) **Base:** `main` ← **Head:** `fix-vm-is-paused` --- ### 📝 Commits (1) - [`873dfcf`](https://github.com/luthermonson/go-proxmox/commit/873dfcf9e0cd9a6dd8f092228eadffdfe574e3a8) Fix VirtualMachine.IsPaused ### 📊 Changes **2 files changed** (+35 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `virtual_machine.go` (+1 -1) 📝 `virtual_machine_test.go` (+34 -0) </details> ### 📄 Description Found a small bug in the VirtualMachine.IsPaused function: The condition in the IsPaused function checks whether the VM is running, not whether it's in a pause state. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 15:30:38 +03:00
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#192
No description provided.