%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/states/ |
Current File : //lib/python2.7/site-packages/salt/states/openstack_config.pyc |
� ���^c @@ sg d Z d d l m Z m Z m Z d d l m Z d d l m Z d � Z d d � Z d d � Z d S( u� Manage OpenStack configuration file settings. :maintainer: Jeffrey C. Ollie <jeff@ocjtech.us> :maturity: new :depends: :platform: linux i ( t absolute_importt print_functiont unicode_literals( t six( t CommandExecutionErrorc C@ s4 d t k r t Sd t k r t Sd t k r0 t St S( uA Only load if the openstack_config module is in __salt__ u openstack_config.getu openstack_config.setu openstack_config.delete( t __salt__t Falset True( ( ( s@ /usr/lib/python2.7/site-packages/salt/states/openstack_config.pyt __virtual__ s c C@ s2 | d k r | } n i | d 6i d 6t d 6d d 6} yu t d d | d | d | � } | | k r} t | d <d | d <| St d r� d | d <d j | | � | d <| SWn7 t k r� } t j | � j � j d � s� � q� n Xt d d | d | d | d | � i d d 6| d <t | d <d | d <| S( up Ensure a value is set in an OpenStack configuration file. filename The full path to the configuration file section The section in which the parameter will be set parameter (optional) The parameter to change. If the parameter is not supplied, the name will be used as the parameter. value The value to set u nameu changesu resultu u commentu openstack_config.gett filenamet sectiont parameteru- The value is already set to the correct valueu testu* Value '{0}' is set to be changed to '{1}'.u parameter not found:u openstack_config.sett valueu Updatedu Valueu The value has been updatedN( t NoneR R R t __opts__t formatR R t text_typet lowert startswith( t nameR R R R t rett old_valuet err( ( s@ /usr/lib/python2.7/site-packages/salt/states/openstack_config.pyt present! s>