Allow options injection for to_yaml#1137
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.
{indentation: 4} doesn't look like a valid puppet hash to me. Or am I missing something?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ 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 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This makes it possible to inject formatting options into the to_yaml function.