mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[PR #521] [MERGED] feat: return agent state as enum #522
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#522
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/521
Author: @Tinyblargon
Created: 11/17/2025
Status: ✅ Merged
Merged: 11/23/2025
Merged by: @Tinyblargon
Base:
master← Head:QemuAgent-ok📝 Commits (4)
c786c62feat: return agent state as enum90fd4c6fix: wrong parameter name4868fa2fix: logic issued8bba3frefactor: rename state enum📊 Changes
6 files changed (+37 additions, -20 deletions)
View changed files
📝
proxmox/client.go(+7 -1)📝
proxmox/client__api.go(+4 -3)📝
proxmox/client__api__mock.go(+3 -3)📝
proxmox/client__new.go(+1 -1)📝
proxmox/client__new__mock.go(+2 -2)📝
proxmox/data__qemu__agent.go(+20 -10)📄 Description
Before we returned the agent state as errors downstream projects would have to parse.
Now we return an enum, removing the need for downstream error parsing for agent related errors.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.