Actions
Bug #21398
closedStruct handling broken
Status:
Closed
Priority:
Normal
Assignee:
-
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.
Updated by Ewoud Kohl van Wijngaarden about 5 years ago
Right now kafo_parsers reads and parses the file. A proper solution would use puppet-strings which can extract the type aliases.
Updated by Ewoud Kohl van Wijngaarden about 5 years ago
- Related to Bug #29505: Using Stdlib data types breaks Variant added
Updated by Ewoud Kohl van Wijngaarden about 1 year ago
- Is duplicate of Bug #36912: can't parse multi-line type definitions added
Updated by Ewoud Kohl van Wijngaarden about 1 year ago
- Status changed from New to Closed
I think this was solved via #36912
Actions