mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #452] [MERGED] Refactor nextid & GuestID.Exists() #482
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#482
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/452
Author: @Tinyblargon
Created: 8/22/2025
Status: ✅ Merged
Merged: 8/22/2025
Merged by: @Tinyblargon
Base:
master← Head:refactor-nextid📝 Commits (4)
337c339fix: id always tested as invalid549ae4dfeat: pass function for ignoring errors0dab40erefactor: GetNextID optimization82ed316refactor: GuestID.Exists() optimization📊 Changes
8 files changed (+94 additions, -45 deletions)
View changed files
📝
cli/validate.go(+1 -1)📝
proxmox/client.go(+54 -22)📝
proxmox/config__guest.go(+22 -13)📝
proxmox/config__lxc__new.go(+1 -1)📝
proxmox/config__lxc__new_test.go(+2 -2)📝
proxmox/config__qemu.go(+1 -1)📝
proxmox/data__qemu__agent.go(+11 -3)📝
proxmox/vmref.go(+2 -2)📄 Description
GuestID.Exists()now checks if a specific error was returned when checking if an ID is in use. Instead of getting the list of all Guests and parsing it.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.