You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(puppetlabs#240) Fix output of default values that are expressions
Previously, parameters with a default value that was an expression were
not outputted into the documentation correctly. For example,
Integer $param = 1 + 1,
Would be shown in the documentation to have a default value of “+”.
This switches to using `extract_tree_text` instead of `extract_text` to
get the text representation of the parsed Puppet code.
This also gets rid of the dependency on
`Puppet::Pops::Adapters::SourcePosAdapter`, which was [deprecated in
2017](puppetlabs/puppet@68498ad).
Unfortunately, it appears that there is a bug in Puppet ([PUP-11632][])
that sometimes returns the incorrect default value. This adds two
skipped tests that demonstrate the issue.
[PUP-11632]: https://tickets.puppetlabs.com/browse/PUP-11632
0 commit comments