[PR #210] [MERGED] Fix issue with omitempty and bool values conflicting with Proxmox API defaults #218

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

📋 Pull Request Information

Original PR: https://github.com/luthermonson/go-proxmox/pull/210
Author: @kernel-sanders
Created: 8/15/2025
Status: Merged
Merged: 8/18/2025
Merged by: @luthermonson

Base: mainHead: main


📝 Commits (2)

  • ab221f3 fix: 🐛 fix bug where passing false to Privsep for token creation would omit the value (bool's zero value is false) and thus Proxmox would use it's default (true)
  • afc40b1 fix: 🐛 fix issue where omitempty prevents a setting due to the default being true

📊 Changes

1 file changed (+8 additions, -8 deletions)

View changed files

📝 types.go (+8 -8)

📄 Description

Fixes #209


🔄 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/210 **Author:** [@kernel-sanders](https://github.com/kernel-sanders) **Created:** 8/15/2025 **Status:** ✅ Merged **Merged:** 8/18/2025 **Merged by:** [@luthermonson](https://github.com/luthermonson) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`ab221f3`](https://github.com/luthermonson/go-proxmox/commit/ab221f332d5de5777d41ed4370de02c944fbdfd8) fix: 🐛 fix bug where passing false to Privsep for token creation would omit the value (bool's zero value is false) and thus Proxmox would use it's default (true) - [`afc40b1`](https://github.com/luthermonson/go-proxmox/commit/afc40b104cc449c6799a96f11732e542f8933ac1) fix: 🐛 fix issue where omitempty prevents a setting due to the default being true ### 📊 Changes **1 file changed** (+8 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `types.go` (+8 -8) </details> ### 📄 Description Fixes #209 --- <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:45 +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#218
No description provided.