mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-26 07:55:50 +03:00
[PR #152] [MERGED] fix(CreateVm): Make 'ide2' not hardcoded assumption #266
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#266
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/152
Author: @sygibson
Created: 1/7/2022
Status: ✅ Merged
Merged: 1/7/2022
Merged by: @mleone87
Base:
master← Head:fix-ide2-in-CreateVm📝 Commits (1)
06b2d55fix(CreateVm): Make 'ide2' not hardcoded assumption📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
proxmox/config_qemu.go(+4 -1)📄 Description
In the
proxmox/config_qemu.gocode path, theQemuIsois specified as a hard coded assumption (see #151 ) for theCreateVmcall. This does not allow for other VM creation scenarios that do not need or require the ISO be used or specified.This pull request moves the
ide2Param definition out of the params map, and in to a separate optionalifcheck structure. This allows for the create of a VM resource without the ISO definition in the config. Existing use cases will continue to function without modification, with the ISO definition in the config.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.