mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[PR #238] [MERGED] Fix empty cloud init ipconfig #332
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#332
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/238
Author: @tnyeanderson
Created: 2/12/2023
Status: ✅ Merged
Merged: 3/2/2023
Merged by: @mleone87
Base:
master← Head:fix-cloud-init-ipconfig📝 Commits (1)
9776008ignore empty ipconfig entries📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
proxmox/config_qemu.go(+1 -1)📄 Description
For the life of me I cannot figure out what is happening... but empty (non-existent)
config.Ipconfigentries are being unmarshaled as empty strings instead ofnilwhich causes the insurmountable error below:Below is the
docker-testterraform config:I have tried bisecting the issue and cannot pin down where it was introduced or why it is happening. But the included fix makes it work for me.
P.S. I was able to determine that, in my case, none of the Ipconfig entries were unmarshaled as anything except an empty string (no
nil, and no actual definitions).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.