Issue #3671 has been updated by Alan Barrett.
Luke Kanies wrote: > This is actually JSON, not yaml. Oh, OK. It looked like the common subset of YAML and JSON. ---------------------------------------- Refactor #3671: "puppetmasterd --compile" output is all on one line http://projects.puppetlabs.com/issues/3671 Author: Alan Barrett Status: Accepted Priority: Normal Assigned to: Category: Target version: Rowlf Affected version: 0.25.4 Branch: When I run <pre> puppetmasterd --compile myclient.example.net >myclient.yaml </pre> then the YAML data in the output is all one one very long line, like this: <pre> {"data":{"edges":[incredibly long list of stuff],"name":"myclient.example.net","resources":[another long list],"tags":[another long list],"version":"catalog version number","metadata":{"api_version":1},"document_type":"Catalog"} </pre> It would be much nicer if it were formatted to look like ${vardir}/client_yaml/catalog/${nodename}.yaml: <pre> --- &id001 !ruby/object:Puppet::Resource::Catalog aliases: {} applying: false classes: - classname - another::classname - more_class_names_one_per_line edges: - &id252 !ruby/object:Puppet::Relationship source: &id002 !ruby/object:Puppet::Resource catalog: *id001 exported: file: line: parameters: {} [lots more stuff, on many lines, with each line having a reasonable length] </pre> One reason to use the "--compile" option is to compare the output before and after making changes to the manifest, like this: <pre> puppetmasterd --compile myclient.example.net >before.yaml <edit the manifest> puppetmasterd --compile myclient.example.net >after.yaml diff before.yaml after.yaml </pre> and if everything is all on one long line, then the diff output is unreasonably difficult to read. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
