Project

General

Profile

Actions

Bug #21398

closed

Struct handling broken

Added by Ewoud Kohl van Wijngaarden over 7 years ago. Updated about 1 year ago.

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

Description

From https://github.com/theforeman/puppet-foreman/pull/601

If you use a complex struct as follows it breaks:

type Foreman::Column_view_column = Struct[
  {
    title => String[1],
    after => String[1],
    content => String[1],
    Optional['conditional'] => String[1],
    Optional['eval_content'] => String[1],
    Optional['view'] => String[1],
    Optional['width'] => String[1],
    Optional['custom_method'] => String[1],
  }
]

This breaks with:

manifests/plugin/column_view.pp parameter columns: data type not recognized Struct [

Moving it all to a single line doesn't appear to help either.


Related issues 2 (0 open2 closed)

Related to Kafo - Bug #29505: Using Stdlib data types breaks VariantDuplicateActions
Is duplicate of Kafo - Bug #36912: can't parse multi-line type definitionsClosedEvgeni GolovActions
Actions

Also available in: Atom PDF