Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

YAML Bug in 2015.3 ?

$
0
0
Hi, since i write my own yaml files using standard implementations i stumbled upon a severe problem.
Boolean Boolean (note: includes on and off, yes and no in addition to true and false)
Good, but why puppet wants to have Language Independent Scalar types quoted ?
This is not the standard so i had to patch the STANDARD implementation to quote the boolean strings.
Next one: Also puppet interprets "stopped" unquoted as bool which is completely wrong.
See: (key: service: stopped)
key service expects a String or Array, got FalseClass
Quoting:
service: "stopped" works.
I patched LibYaml:
(string_len == 0) ||
strEQ(string, "~") ||
strEQ(string, "yes") ||
strEQ(string, "stopped") ||
strEQ(string, "no") ||
strEQ(string, "on") ||
strEQ(string, "off") ||
strEQ(string, "true") ||
strEQ(string, "false") ||
strEQ(string, "null") ||
to get things working. I didn't test json the backend yet ;-) Perhaps a developer can explain why. Rgds. Franz

Viewing all articles
Browse latest Browse all 6104

Trending Articles