-
Notifications
You must be signed in to change notification settings - Fork 583
Allow options injection for to_yaml #1137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
to_yaml is a functionBreaking changes to this file MAY impact these 30 modules (near match):
This module is declared in 319 of 575 indexed public
|
This makes it possible to inject formatting options into the to_yaml function.
75fad33
to
fcd0099
Compare
Codecov Report
@@ Coverage Diff @@
## main #1137 +/- ##
========================================
+ Coverage 5.31% 5.60% +0.29%
========================================
Files 185 186 +1
Lines 5273 5230 -43
========================================
+ Hits 280 293 +13
+ Misses 4993 4937 -56
Continue to review full report at Codecov.
|
Thanks, @baurmatt for your contribution! kind regards, |
# @example Use options control the output format | ||
# file { '/tmp/my.yaml': | ||
# ensure => file, | ||
# content => to_yaml($myhash, {indentation: 4}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{indentation: 4}
doesn't look like a valid puppet hash to me. Or am I missing something?
This makes it possible to inject formatting options into the to_yaml function.