Skip to content

Commit 73c9df1

Browse files
cursoragentbpg
andcommitted
Fix zone identifier regex to allow single-letter zone names
Co-authored-by: pavel <[email protected]>
1 parent 396a3ae commit 73c9df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fwprovider/cluster/sdn/zone/resource_generic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func genericAttributesWith(extraAttributes ...map[string]schema.Attribute) map[s
9797
Validators: []validator.String{
9898
// https://github.com/proxmox/pve-network/blob/faaf96a8378a3e41065018562c09c3de0aa434f5/src/PVE/Network/SDN/Zones/Plugin.pm#L34
9999
stringvalidator.RegexMatches(
100-
regexp.MustCompile(`^[A-Za-z][A-Za-z0-9]*[A-Za-z0-9]$`),
100+
regexp.MustCompile(`^[A-Za-z][A-Za-z0-9]*$`),
101101
"must be a valid zone identifier",
102102
),
103103
stringvalidator.LengthAtMost(8),

0 commit comments

Comments
 (0)