Project

General

Profile

Actions

Bug #31565

closed

Validation of array's as static parameters on a class is incorrectly handled

Added by Eric Helms over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Example, setting `Array[Stdlib::Fqdn] $cname = []` as a parameter on `init.p` in puppet-certs results in:

Parameter certs-cname invalid: Elements of the array are invalid: [] must match one of
(?-mix:\A(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-][a-zA-Z0-9]).)([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])\z
Actions

Also available in: Atom PDF