%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/states/ |
Current File : //lib/python2.7/site-packages/salt/states/influxdb08_database.pyo |
� ���^c @@ sY d Z d d l m Z m Z m Z d � Z d d d d d � Z d d d d d � Z d S( u� Management of Influxdb 0.8 databases ==================================== (compatible with InfluxDB version 0.5-0.8) .. versionadded:: 2014.7.0 i ( t absolute_importt print_functiont unicode_literalsc C@ s d t k r d St S( u9 Only load if the influxdb08 module is available u influxdb08.db_existsu influxdb08_database( t __salt__t False( ( ( sC /usr/lib/python2.7/site-packages/salt/states/influxdb08_database.pyt __virtual__ s c C@ s� i | d 6i d 6t d 6d d 6} t d | | | | | � s� t d ri d | d <d j | � | d <| St d | | | | | � r� d j | � | d <d | d | <| Sd j | � | d <t | d <| Sn d 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 u nameu changesu resultu u commentu influxdb08.db_existsu testu. Database {0} is absent and needs to be createdu influxdb08.db_createu Database {0} has been createdu Presentu Failed to create database {0}u5 Database {0} is already present, so cannot be createdN( t TrueR t __opts__t Nonet formatR ( t namet usert passwordt hostt portt ret( ( sC /usr/lib/python2.7/site-packages/salt/states/influxdb08_database.pyt present s( c C@ s� i | d 6i d 6t d 6d d 6} t d | | | | | � r� t d ri d | d <d j | � | d <| St d | | | | | � r� d j | � | d <d | d | <| Sd j | � | d <t | d <| Sn d 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 u nameu changesu resultu u commentu influxdb08.db_existsu testu/ Database {0} is present and needs to be removedu influxdb08.db_removeu Database {0} has been removedu Absentu Failed to remove database {0}u4 Database {0} is not present, so it cannot be removedN( R R R R R R ( R R R R R R ( ( sC /usr/lib/python2.7/site-packages/salt/states/influxdb08_database.pyt absentH s( N( t __doc__t __future__R R R R R R R ( ( ( sC /usr/lib/python2.7/site-packages/salt/states/influxdb08_database.pyt <module> s /