mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[PR #81] [MERGED] Added fix for optional volume key when parsing mountpoints #212
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#212
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/81
Author: @johnknott
Created: 7/11/2020
Status: ✅ Merged
Merged: 7/27/2020
Merged by: @ggongaware
Base:
master← Head:master📝 Commits (1)
14f1afbAdded fix for optional volume key when parsing mountpoints📊 Changes
1 file changed (+5 additions, -0 deletions)
View changed files
📝
proxmox/config_lxc.go(+5 -0)📄 Description
According to the docs at https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/lxc , the way mountpoints are specified includes a mandatory parameter with an option leading 'volume='.
[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]So I think we have to be able to parse both of the following formats successfully:
a)
"/mnt/pve/storage-box/,mp=/mnt/shared/"<Implied Volume definition>b)
"volume=/mnt/pve/storage-box/,mp=/mnt/shared/"<Explicit Volume definition>I've see both formats of those definitions on my Proxmox machine. I'm not sure which are created by the UI, which by Terraform, which by
pct setor which bypvesh.Trying to parse mountpoint definitions like
"/mnt/pve/storage-box/,mp=/mnt/shared/"was causing problems previously.I've applied a small patch which should help other issues downstream like this one: https://github.com/Telmate/terraform-provider-proxmox/issues/157
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.