mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-26 07:55:50 +03:00
[PR #368] [MERGED] tags - allow uppercase #422
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#422
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/368
Author: @xrayj11
Created: 10/20/2024
Status: ✅ Merged
Merged: 10/22/2024
Merged by: @Tinyblargon
Base:
master← Head:master📝 Commits (1)
d5b3125tags - allow uppercase📊 Changes
2 files changed (+3 additions, -3 deletions)
View changed files
📝
proxmox/type_tag.go(+2 -2)📝
test/data/test_data_tag/type_Tag.go(+1 -1)📄 Description
Tags should be allowed to have uppercase letters.
There is an option in the Datacenter > Options > Tag Style Override to enforce case-sensitivity. When this is enabled, existing tags with capital letters cannot be assigned via this api.
I originally encountered this issue using Telmate/terraform-provider-proxmox, however it appears the root issue is in this repo which does tag validation:
github.com/Telmate/proxmox-api-go@25d65daa0b/proxmox/type_tag.go (L11-L16)I think this should be a relatively simple fix, I've added A-Z to the regex, updated the error message, and moved a previously Illegal tag in the tests to the Legal list.
I've tested this change on my fork with
createQemu, and it seems to be functioning as expected, I no longer receive an error trying to assign tags with uppercase characters.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
golang.org/x/crypto#456