Project

General

Profile

Bug #31565

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

Added by Eric Helms 10 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Difficulty:
Triaged:
No
Bugzilla link:
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

Associated revisions

Revision 089b7a2a (diff)
Added by Ewoud Kohl van Wijngaarden 3 months ago

Fixes #31565 - Handle arrays and hashes from strings

In the puppet-strings output hashes and arrays are literal values. This
adds support for parsing them. It is very naive and it will fail if a
string contains special characters that also define the structure.

History

#1 Updated by Eric Helms 10 months ago

  • Description updated (diff)

#2 Updated by The Foreman Bot 3 months ago

  • Assignee set to Ewoud Kohl van Wijngaarden
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/kafo_parsers/pull/46 added

#3 Updated by Ewoud Kohl van Wijngaarden 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF