%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/utils/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/utils/environment.pyc

�
���^c@@sAdZddlmZmZmZddlZddd�ZdS(u
Environment utilities.
i(tabsolute_importtprint_functiontunicode_literalsNc	C@swi}|si}nx[|jdi�|jdi�gD]5}|jdd�}tjj|�jd�d}tjjtjj|��}|jd�g}||kr�|j|�nx�|D]�}|s�q�n|j|jdi�j|i�j|i�jd	i�j��|d
k	r�|j|jdi�j|i�j|i�j|i�j��q�q�Wq:W|S(ug
    Get module optional environment.

    To setup an environment option for a particular module,
    add either pillar or config at the minion as follows:

    system-environment:
      modules:
        pkg:
          _:
            LC_ALL: en_GB.UTF-8
            FOO: bar
          install:
            HELLO: world
      states:
        pkg:
          _:
            LC_ALL: en_US.Latin-1
            NAME: Fred

    So this will export the environment to all the modules,
    states, returnes etc. And calling this function with the globals()
    in that context will fetch the environment for further reuse.

    Underscore '_' exports environment for all functions within the module.
    If you want to specifially export environment only for one function,
    specify it as in the example above "install".

    First will be fetched configuration, where virtual name goes first,
    then the physical name of the module overrides the virtual settings.
    Then pillar settings will override the configuration in the same order.

    :param env:
    :param function: name of a particular function
    :return: dict
    u__opts__u
__pillar__u__file__uu.iu__virtualname__usystem-environmentu_N(
tgettostpathtbasenametsplittdirnametappendtupdatetcopytNone(	tenvtfunctiontresulttenv_srctfnamet
physical_nametsectiontm_namestm_name((s:/usr/lib/python2.7/site-packages/salt/utils/environment.pytget_module_environment	s&%	+
+6(t__doc__t
__future__RRRRRR(((s:/usr/lib/python2.7/site-packages/salt/utils/environment.pyt<module>s

Zerion Mini Shell 1.0