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
Workaround strings bug when generating function docs
Added a newline between the require statement and start of documentation
to work around puppetlabs/puppet-strings#296
To verify, run:
echo 'gem "puppet-strings"' >> Gemfile.local
bundle update
bundle exec puppet strings generate --format json --out /tmp/strings.json
jq -r '.puppet_functions[] | select(.name == "yaml_data").docstring.text ' /tmp/strings.json | head
Copy file name to clipboardExpand all lines: lib/puppet/functions/yaml_data.rb
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# frozen_string_literal: true
2
2
3
3
require'yaml'
4
+
4
5
# The `yaml_data` is a hiera 5 `data_hash` data provider function.
5
6
# See [the configuration guide documentation](https://puppet.com/docs/puppet/latest/hiera_config_yaml_5.html#configuring-a-hierarchy-level-built-in-backends) for
0 commit comments