mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #110] [MERGED] fix crash when cloud-init disk have missing size #238
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#238
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/110
Author: @msbence
Created: 3/30/2021
Status: ✅ Merged
Merged: 3/30/2021
Merged by: @ggongaware
Base:
master← Head:master📝 Commits (1)
086e5b1fix cloud-init disk with missing size📊 Changes
1 file changed (+5 additions, -0 deletions)
View changed files
📝
proxmox/config_qemu.go(+5 -0)📄 Description
There were some changes Proxmox side which resulted a missing
sizeparameter in the API, and caused the application (and the provider using it) to crash.My changes: the application now checks if the disk size is
nilor not, and when it is then it sets the default cloud-init disk size if the disk is indeed a cloud-init one (by checking the filename).PVE 6.3-6, cloud-init disk as
scsi2🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.