Displaying 1 result from an estimated 1 matches for "yamllint".
Did you mean:
xmllint
2012 Jul 05
1
hash to_yaml in erb template not giving valid yaml
...= {}; scope.to_hash.each_pair {|k,v|
facts[k.to_s] = v.to_s unless k.to_s =~
/pkg_|_hours|_seconds|memoryfree|plugin_|config|_timestamp/ };
facts.to_yaml.sort %>"),
}
After a run the content is indented with 2 spaces and some facts give
me garbage values. If I verify this on e.g. http://yamllint.com/ I
have a syntax error with the 2 leading spaces.
Snippet from ''/etc/mcollective/facts.yaml''
[root~]# cat /etc/mcollective/facts.yaml
architecture: &id001 x86_64
hardwareisa: x86_64
hardwaremodel: *id001
kernelrelease: 2.6.18-274.17.1.el5xen
clientversion: *id0...