mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-26 07:55:50 +03:00
[GH-ISSUE #394] USB port_id schema wrong port path parsing #105
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#105
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 @huettern on GitHub (Jan 10, 2025).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/394
The validator
github.com/Telmate/proxmox-api-go@105874332f/proxmox/config_qemu_usb.go (L343-L345)Expects a USB port of the form
x-y, wherexandyare integers. But according to the Proxmox Doc,yis the port path and is of the forma[.b[.c]...]wherea, b, care integers.So the validator should be changed to check that
yis a.-delimited list of integers.Valid port paths are
3-13-1.13-1.2.3