%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/modules/openstack_config.pyc

�
���^c@@sNdZddlmZmZmZddlZyddlZeZWne	k
r]e
ZnXeed�ryejZ
n'er�eed�r�ejZ
ndZ
ddlmZddlZddlZidd6Zd�Zd	�Zejjjjd
�d��Zejjjjd
�d��Zejjjjd
�d
��ZdS(u�
Modify, retrieve, or delete values from OpenStack configuration files.

:maintainer: Jeffrey C. Ollie <jeff@ocjtech.us>
:maturity: new
:depends:
:platform: linux

i(tabsolute_importtprint_functiontunicode_literalsNuquote(tsixusetuset_cC@stdkrtrtStS(N(t_quotetNonetHAS_DEPStFalsetTrue(((sA/usr/lib/python2.7/site-packages/salt/modules/openstack_config.pyt__virtual__'scO@sdS(Nu�The "openstack-config" command needs to be installed for this function to work.  Typically this is included in the "openstack-utils" package.((targstkw((sA/usr/lib/python2.7/site-packages/salt/modules/openstack_config.pyt	_fallback-suopenstack-configcC@s�t|�}t|�}t|�}ttj|��}tddj||||�dt�}|ddkry|dStjj|d��dS(	u�
    Set a value in an OpenStack configuration file.

    filename
        The full path to the configuration file

    section
        The section in which the parameter will be set

    parameter
        The parameter to change

    value
        The value to set

    CLI Example:

    .. code-block:: bash

        salt-call openstack_config.set /etc/keystone/keystone.conf sql connection foo
    ucmd.run_allu&openstack-config --set {0} {1} {2} {3}tpython_shelluretcodeiustdoutustderrN(	RRt	text_typet__salt__tformatRtsaltt
exceptionstCommandExecutionError(tfilenametsectiont	parametertvaluetresult((sA/usr/lib/python2.7/site-packages/salt/modules/openstack_config.pytset_1s	cC@s{t|�}t|�}t|�}tddj|||�dt�}|ddkra|dStjj|d��dS(	up
    Get a value from an OpenStack configuration file.

    filename
        The full path to the configuration file

    section
        The section from which to search for the parameter

    parameter
        The parameter to return

    CLI Example:

    .. code-block:: bash

        salt-call openstack_config.get /etc/keystone/keystone.conf sql connection

    ucmd.run_allu"openstack-config --get {0} {1} {2}R
uretcodeiustdoutustderrN(RRRRRRR(RRRR((sA/usr/lib/python2.7/site-packages/salt/modules/openstack_config.pytget[s	cC@s{t|�}t|�}t|�}tddj|||�dt�}|ddkra|dStjj|d��dS(	uq
    Delete a value from an OpenStack configuration file.

    filename
        The full path to the configuration file

    section
        The section from which to delete the parameter

    parameter
        The parameter to delete

    CLI Example:

    .. code-block:: bash

        salt-call openstack_config.delete /etc/keystone/keystone.conf sql connection
    ucmd.run_allu"openstack-config --del {0} {1} {2}R
uretcodeiustdoutustderrN(RRRRRRR(RRRR((sA/usr/lib/python2.7/site-packages/salt/modules/openstack_config.pytdelete�s	(t__doc__t
__future__RRRtshlextpipesRRtImportErrorRthasattrtquoteRRtsalt.extRtsalt.utils.decorators.pathRtsalt.exceptionst__func_alias__R	Rtutilst
decoratorstpathtwhichRRR(((sA/usr/lib/python2.7/site-packages/salt/modules/openstack_config.pyt<module>
s,



		!*!'

Zerion Mini Shell 1.0