%PDF- %PDF-
Mini Shell

Mini Shell

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

�
���^c@@sYdZddlmZmZmZd�Zddddd�Zddddd�ZdS(u�
Management of Influxdb 0.8 databases
====================================

(compatible with InfluxDB version 0.5-0.8)

.. versionadded:: 2014.7.0

i(tabsolute_importtprint_functiontunicode_literalscC@sdtkrdStS(u9
    Only load if the influxdb08 module is available
    uinfluxdb08.db_existsuinfluxdb08_database(t__salt__tFalse(((sC/usr/lib/python2.7/site-packages/salt/states/influxdb08_database.pyt__virtual__scC@s�i|d6id6td6dd6}td|||||�s�tdrid|d<dj|�|d<|Std	|||||�r�d
j|�|d<d|d|<|Sdj|�|d<t|d<|Snd
j|�|d<|S(u9
    Ensure that the named database is present

    name
        The name of the database to create

    user
        The user to connect as (must be able to remove the database)

    password
        The password of the user

    host
        The host to connect to

    port
        The port to connect to

    unameuchangesuresultuucommentuinfluxdb08.db_existsutestu.Database {0} is absent and needs to be createduinfluxdb08.db_createuDatabase {0} has been createduPresentuFailed to create database {0}u5Database {0} is already present, so cannot be createdN(tTrueRt__opts__tNonetformatR(tnametusertpasswordthosttporttret((sC/usr/lib/python2.7/site-packages/salt/states/influxdb08_database.pytpresents(






cC@s�i|d6id6td6dd6}td|||||�r�tdrid|d<dj|�|d<|Std	|||||�r�d
j|�|d<d|d|<|Sdj|�|d<t|d<|Snd
j|�|d<|S(u8
    Ensure that the named database is absent

    name
        The name of the database to remove

    user
        The user to connect as (must be able to remove the database)

    password
        The password of the user

    host
        The host to connect to

    port
        The port to connect to

    unameuchangesuresultuucommentuinfluxdb08.db_existsutestu/Database {0} is present and needs to be removeduinfluxdb08.db_removeuDatabase {0} has been removeduAbsentuFailed to remove database {0}u4Database {0} is not present, so it cannot be removedN(RRRRR	R(R
RRR
RR((sC/usr/lib/python2.7/site-packages/salt/states/influxdb08_database.pytabsentHs(






N(	t__doc__t
__future__RRRRRRR(((sC/usr/lib/python2.7/site-packages/salt/states/influxdb08_database.pyt<module>
s		/

Zerion Mini Shell 1.0