mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #129] [MERGED] Fixed DeleteVmParams #253
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#253
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/129
Author: @ConnorJarvis
Created: 7/21/2021
Status: ✅ Merged
Merged: 7/26/2021
Merged by: @ggongaware
Base:
master← Head:fix_delete_vm📝 Commits (2)
d05ec9dFixed when you pass params to DeleteVmParams56261aaCleaned up implementation to reduce duplicated code📊 Changes
2 files changed (+10 additions, -5 deletions)
View changed files
📝
proxmox/client.go(+3 -3)📝
proxmox/session.go(+7 -2)📄 Description
The delete path expects parameters to be URL values, not contained within the body. Passing any body values to the DELETE path returns "501 Unexpected content for method 'DELETE'"
Updated DeleteVmParams to use a new function ParamsToValues which is the exact same as ParamsToBody with no conversion to []byte.
ParamsToBody now calls ParamsToValues and converts to []byte
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.