[GH-ISSUE #444] Bug: . not allowed in guest name #116

Closed
opened 2026-02-28 00:40:38 +03:00 by kerem · 1 comment
Owner

Originally created by @Tinyblargon on GitHub (Aug 4, 2025).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/444

Originally assigned to: @Tinyblargon on GitHub.

The . character is not counted as valid in a guest name during validation.

Related to https://github.com/Telmate/terraform-provider-proxmox/issues/1368

Originally created by @Tinyblargon on GitHub (Aug 4, 2025). Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/444 Originally assigned to: @Tinyblargon on GitHub. The `.` character is not counted as valid in a guest name during validation. Related to https://github.com/Telmate/terraform-provider-proxmox/issues/1368
kerem 2026-02-28 00:40:38 +03:00
Author
Owner

@hagaram commented on GitHub (Aug 4, 2025):

Error is here
github.com/Telmate/proxmox-api-go@db6e9b5241/proxmox/config__guest.go (L111)

And it works without any issues after fixing and building the provider.

I did this

// var guestNameRegex = regexp.MustCompile("^([a-z]|[A-Z]|[0-9]|-)+$")
var guestNameRegex = regexp.MustCompile("^[a-zA-Z0-9.-]+$")
<!-- gh-comment-id:3150712245 --> @hagaram commented on GitHub (Aug 4, 2025): Error is here https://github.com/Telmate/proxmox-api-go/blob/db6e9b52411cbd3644495f39825126e142318282/proxmox/config__guest.go#L111 And it works without any issues after fixing and building the provider. I did this ``` // var guestNameRegex = regexp.MustCompile("^([a-z]|[A-Z]|[0-9]|-)+$") var guestNameRegex = regexp.MustCompile("^[a-zA-Z0-9.-]+$") ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#116
No description provided.