File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/openstack_config.cpython-310.pyc
Back
o ;j� � @ s� d Z ddlZddlZddlZddiZdd� Zdd� Zejj j �d �d d� �Zejj j �d �dd� �Z ejj j �d �d d� �ZdS )z� Modify, retrieve, or delete values from OpenStack configuration files. :maintainer: Jeffrey C. Ollie <jeff@ocjtech.us> :maturity: new :depends: :platform: linux � N�set_�setc C s dS )NT� r r r �Q/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/openstack_config.py�__virtual__ s r c O s dS )Nz�The "openstack-config" command needs to be installed for this function to work. Typically this is included in the "openstack-utils" package.r )�args�kwr r r � _fallback s �r zopenstack-configc C sl t �| �} t �|�}t �|�}t �t|��}td d�| |||�dd�}|d dkr.|d S tj�|d ��) a� 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 �cmd.run_allz"openstack-config --set {} {} {} {}F�Zpython_shell�retcoder �stdout�stderr)�shlex�quote�str�__salt__�format�salt� exceptions�CommandExecutionError)�filename�section� parameter�value�resultr r r r s ��c C �d t �| �} t �|�}t �|�}td d| � d|� d|� �dd�}|d dkr*|d S tj�|d ��) ap 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 r zopenstack-config --get � Fr r r r r �r r r r r r �r r r r r r r �getI s �r c C r ) aq 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 r zopenstack-config --del r Fr r r r r r r r r r �deleten s �r! )�__doc__r Zsalt.exceptionsr Zsalt.utils.decorators.pathZ__func_alias__r r �utilsZ decorators�path�whichr r r! r r r r �<module> s ) $
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings