%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/output/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/output/newline_values_only.pyo

�
���^c@@sZdZddlmZmZmZddlmZd�Zd�Zd�Z	d�Z
dS(	u�
Display values only, separated by newlines
==========================================

.. versionadded:: 2015.5.0

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 :mod:`json <salt.output.json>`, :mod:`pprint,
    <salt.output.pprint>`, or :mod:`yaml <salt.output.yaml>`) may be more
    suitable.


Example 1
~~~~~~~~~

Input
-----

.. code-block:: python

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

Output
------

.. code-block:: python

    127.0.0.1
    10.0.0.1
    127.0.0.1
    10.0.0.2

Example 2
~~~~~~~~~

Input
-----

.. code-block:: python

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

Output
------

.. code-block:: python

    8
    10
i(tabsolute_importtprint_functiontunicode_literals(tsixcC@sVg}xItj|�D]8\}}t|t�rA|j|�q|j|�qW|S(N(Rt	iteritemst
isinstancetlisttextendtappend(tdatatvaluest_t
minion_values((sC/usr/lib/python2.7/site-packages/salt/output/newline_values_only.pyt_get_valuesOscC@sdjtt|���S(Nu
(tjoint_string_listR
(R	((sC/usr/lib/python2.7/site-packages/salt/output/newline_values_only.pyt_one_level_values`scC@s g|D]}tj|�^qS(N(Rt	text_type(ta_listtitem((sC/usr/lib/python2.7/site-packages/salt/output/newline_values_only.pyRdscK@s
t|�S(u#
    Display modified ret data
    (R(R	tkwargs((sC/usr/lib/python2.7/site-packages/salt/output/newline_values_only.pytoutputhsN(t__doc__t
__future__RRRtsalt.extRR
RRR(((sC/usr/lib/python2.7/site-packages/salt/output/newline_values_only.pyt<module>Fs			

Zerion Mini Shell 1.0