|
In discussing this ticket the question of whether to include section information in the formatted output came up, when asking for one or more settings from a specific section to show where those settings originated from. Eg:
{
|
"main": {
|
"setting1": "value1"
|
},
|
"agent": {
|
"environment": "development"
|
}
|
}
|
However, this was decided against to more closely mimic the existing output from puppet config print, and because including this extra information would require an extra level of merging when consuming the emitted JSON/YAML (potentially knowing about and duplicating the exiting section precedence rules in Puppet).
|