New in version 2015.5.0.
This outputter is designed for Salt CLI return data. It will do the following to the return dict:
Get just the values (ignoring the minion IDs).
Each value, if it is iterable, is split a separate line.
Each minion's values are separated by newlines.
This results in a single string of return data containing all the values from the various minions.
Warning
As noted above, this outputter will discard the minion ID. If the minion ID
is important, then an outputter that returns the full return dictionary in
a parsable format (such as json
, pprint,
, or yaml
) may be more
suitable.
salt '*' foo.bar --out=newline_values_only
{
'myminion': ['127.0.0.1', '10.0.0.1'],
'second-minion': ['127.0.0.1', '10.0.0.2']
}
127.0.0.1
10.0.0.1
127.0.0.1
10.0.0.2
salt '*' foo.bar --out=newline_values_only
{
'myminion': 8,
'second-minion': 10
}
8
10
Display modified ret data