%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/227033/root/lib/python2.7/site-packages/salt/client/ssh/wrapper/
Upload File :
Create Path :
Current File : //proc/227033/root/lib/python2.7/site-packages/salt/client/ssh/wrapper/pillar.pyo

�
���^c@@s�dZddlmZmZddlZddlZddlZddlZddl	m
Z
dee
d�Zd�Z
dd�Ze
d	�ZeZeZdS(
s)
Extract the pillar data for this minion
i(tabsolute_importtprint_functionN(tDEFAULT_TARGET_DELIMtcC@s}|ratjjjt|i|�}t|tj�rat|tj�ratjjj	||�Sntjjjt|||�S(s�
    .. versionadded:: 0.14

    Attempt to retrieve the named value from pillar, if the named value is not
    available return the passed default. The default return is an empty string.

    If the merge parameter is set to ``True``, the default will be recursively
    merged into the returned pillar data.

    The value can also represent a value in a nested dict using a ":" delimiter
    for the dict. This means that if a dict in pillar looks like this::

        {'pkg': {'apache': 'httpd'}}

    To retrieve the value associated with the apache key in the pkg dict this
    key can be passed::

        pkg:apache

    merge
        Specify whether or not the retrieved values should be recursively
        merged into the passed default.

        .. versionadded:: 2015.5.0

    delimiter
        Specify an alternate delimiter to use when traversing a nested dict

        .. versionadded:: 2015.5.0

    CLI Example:

    .. code-block:: bash

        salt '*' pillar.get pkg:apache
    (
tsalttutilstdatattraverse_dict_and_listt
__pillar__t
isinstancetcollectionstMappingt
dictupdatetupdate(tkeytdefaulttmerget	delimitertret((sB/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/pillar.pytgets%cG@sAi}x4|D],}yt|||<Wq
tk
r8q
Xq
W|S(s�
    .. versionadded:: 0.16.2

    Return one or more pillar entries

    CLI Examples:

    .. code-block:: bash

        salt '*' pillar.item foo
        salt '*' pillar.item foo bar baz
    (RtKeyError(targsRtarg((sB/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/pillar.pytitemCs


cC@s%|rtj|i�}nt}|S(sY
    Return the raw pillar data that is available in the module. This will
    show the pillar as it is loaded as the __pillar__ dict.

    CLI Example:

    .. code-block:: bash

        salt '*' pillar.raw

    With the optional key argument, you can select a subtree of the
    pillar raw data.::

        salt '*' pillar.raw key='roles'
    (RR(RR((sB/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/pillar.pytrawYscC@sstjjjt|t|�}|tkrBtdj|���nt|t�sit	dj|���n|j
�S(s�
    .. versionadded:: 2015.8.0

    Attempt to retrieve a list of keys from the named value from the pillar.

    The value can also represent a value in a nested dict using a ":" delimiter
    for the dict, similar to how pillar.get works.

    delimiter
        Specify an alternate delimiter to use when traversing a nested dict

    CLI Example:

    .. code-block:: bash

        salt '*' pillar.keys web:sites
    sPillar key not found: {0}s%Pillar value in key {0} is not a dict(RRRRRRtformatR	tdictt
ValueErrortkeys(RRR((sB/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/pillar.pyRqs(t__doc__t
__future__RRR
tsalt.pillarRtsalt.utils.datatsalt.utils.dictupdatet
salt.defaultsRtFalseRRtNoneRRtitemsR(((sB/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/pillar.pyt<module>s2	

Zerion Mini Shell 1.0