mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[PR #478] fix: keep attributes when required on configSDNZone.mapToApiValues #498
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#498
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/478
Author: @NemoDacremont
Created: 10/9/2025
Status: 🔄 Open
Base:
master← Head:fix/sdn-maptoapi-broken📝 Commits (4)
3874712fix: keep attributes when required on configSDNZone.mapToApiValues823deb4feat: breaking use GetItemConfigMap to return object directly and not data: {} ; and add NewConfigSDNZoneFromApid660623test: add create, update and delete tests for sdn zonesb4e5489clean: remove log.println and use consts in sdn zone tests📊 Changes
3 files changed (+104 additions, -8 deletions)
View changed files
📝
proxmox/client.go(+1 -1)📝
proxmox/config__sdn__zone.go(+25 -7)➕
test/api/Sdn/sdn_zone_create_update_delete_test.go(+78 -0)📄 Description
Sorry for the amount of patches I'm submitting, this one is smaller and straight forward.
It fixes #467, it uses the same
createflag as inValidateto know if it should drop thetypeattribute.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.