Describe the Bug
The to_yaml function don't takes into account the deferred function
Expected Behavior
That for example password's can be read via the deferred function, which will be used in yaml structures.
Sample code:
$foo= {
_meta => {
type => 'internalusers',
config_version => 2,
},
sample => {
hash => Deferred(<function>, [<parameters>]),
reserved => true,
backend_roles => [
'admin'
],
description => 'bar'
}
}
file { 'foo.yaml':
ensure => file,
content => stdlib::to_yaml($foo),
}
It will result in:
hash: !ruby/object
hash: 908132173599942729
name:
arguments:
- "<parameter 1>"
- "<parameter 2>"
instant of an correct yaml file.
Describe the Bug
The to_yaml function don't takes into account the deferred function
Expected Behavior
That for example password's can be read via the deferred function, which will be used in yaml structures.
Sample code:
It will result in:
instant of an correct yaml file.