22.18.6. salt.output.newline_values_only

22.18.6.1. Display values only, separated by newlines

New in version Lithium.

This outputter is designed for Salt CLI return data. It will do the following to the return dict:

  1. Get just the values (ignoring the minion IDs).
  2. Each value, if it is iterable, is split a separate line.
  3. 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.

22.18.6.1.1. Example 1

22.18.6.1.1.1. Input

{
    'myminion': ['127.0.0.1', '10.0.0.1'],
    'second-minion': ['127.0.0.1', '10.0.0.2']
}

22.18.6.1.1.2. Output

127.0.0.1
10.0.0.1
127.0.0.1
10.0.0.2

22.18.6.1.2. Example 2

22.18.6.1.2.1. Input

{
    'myminion': 8,
    'second-minion': 10
}

22.18.6.1.2.2. Output

8
10
salt.output.newline_values_only.output(data)

Display modified ret data

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Table Of Contents

Previous topic

22.18.5. salt.output.nested

Next topic

22.18.7. salt.output.no_out

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.