When you have deep nested output data in salt, you will sometimes see that some levels get compacted, like the example below. And this compact format with the pipe delimiter is already in the output datastructures before they hit the outputter. My questions would be
- Does anyone know if this behavior or format has a name to it?
- And is there a way - I tried (nearly) everything :) - to say I want this, want this always, want this never?
Currently it seems to happen when the nesting reaches a certain level. So you cannot be sure how your output is generated. I want to implement a better analysis for our activities and would love to be it the same way - always. Where I dont care if it is condensed or full. Just constantly the same.
Example:
core.roles:
----------
server.has.name:
----------
grains_|-roles_|-roles_|-present:
----------
__run_num__:
0
result:
None
instead of writing the full yaml:
core.roles:
----------
server.has.name:
----------
grains:
----------
roles:
----------
roles:
----------
present:
----------
__run_num__:
0
result:
None