mirror of
https://github.com/Corsinvest/cv4pve-api-powershell.git
synced 2026-04-25 12:15:48 +03:00
[GH-ISSUE #32] recent patch breaks post and put api calls #23
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-api-powershell#23
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?
Originally created by @Erik-Horn on GitHub (Feb 13, 2025).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-api-powershell/issues/32
Originally assigned to: @franklupo on GitHub.
What happened?
The commit 04f2f84 for issue #28 has a search/replace mistake which breaks much of the module, especially functions that would use a post or put api call.
In the patch, references such as:
$PSBoundParameters['Target']
were replaced with:
$PSBoundParameters.ContainsKey['Target']
but should have been
$PSBoundParameters.ContainsKey('Target')
This results in no parameters being passed to Invoke-PveRestApi
Module version 8.3.0 does not have this issue.
Expected behavior
see the what happened section
Relevant log output
Proxmox VE Version
8.3.2
Version (bug)
8.3.1
Version (working)
8.3.0
On what operating system are you experiencing the issue?
Windows
Pull Request