%PDF- %PDF-
| Direktori : /proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/states/solrcloud.pyo |
�
���^c @@ sW d Z d d l m Z m Z m Z d d l Z d d l m Z d � Z d d � Z d S( uV
States for solrcloud alias and collection configuration
.. versionadded:: 2017.7.0
i ( t absolute_importt unicode_literalst print_functionN( t sixc K@ s� i | d 6i d 6t d 6d d 6} t d | | � rt d | | � } t | � j t | � � } t | � d k r� t | d <d | d <| St d
r� d j | � | d <d | d <n1 t d | | | � d
j | � | d <t | d <i d j | � d 6d j | � d 6| d <n| t d
r?d j | � | d <d | d <n1 t d | | | � d j | � | d <t | d <i d d 6d j | � d 6| d <| S( u*
Create alias and enforce collection list.
Use the solrcloud module to get alias members and set them.
You can pass additional arguments that will be forwarded to http.query
name
The collection name
collections
list of collections to include in the alias
u nameu changesu resultu u commentu solrcloud.alias_existsu solrcloud.alias_get_collectionsi u Alias is in desired stateu testu The alias "{0}" will be updated.u solrcloud.alias_set_collectionsu! The alias "{0}" has been updated.u ,u oldu newu The alias "{0}" will be created.u! The alias "{0}" has been created.N(
t Falset __salt__t sett
differencet lent Truet __opts__t formatt Nonet join( t namet collectionst kwargst rett
alias_contentt diff( ( s9 /usr/lib/python2.7/site-packages/salt/states/solrcloud.pyt alias s>