Displaying 1 result from an estimated 1 matches for "parse_answer".
2012 Mar 25
2
Hiera: Bug with false booleans
...as
this line while iterating over all backends: "break if answer" Which
doesn''t work when any of the backends returns a false boolean because
it''ll never break.
My ruby skills are very limited so I don''t know how to fix it properly
but a workaround is to change parse_answer[2] to return a string
instead: return data.to_s
Another workaround is to quote (false) booleans in the YAML files.
Not sure if there are other implications.
Cheers,
Lars
[1] <https://github.com/puppetlabs/hiera/blob/master/lib/hiera/backend.rb#L162>
[2] <https://github.com/puppetlabs/hi...