| 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 : |
o
;j�D � @ s� d Z ddlZddlZdZe�e�ZddgZddgZdZ d d
� Z
dd� Zd
d� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Z d)d d!�Z d*d"d#�Z d*d$d%�Zdddde d&fd'd(�ZdS )+a
StatusPage
==========
Manage the StatusPage_ configuration.
.. _StatusPage: https://www.statuspage.io/
In the minion configuration file, the following block is required:
.. code-block:: yaml
statuspage:
api_key: <API_KEY>
page_id: <PAGE_ID>
.. versionadded:: 2017.7.0
� NZ
statuspageZ
created_atZ
updated_at�id�name� c C s dt v rdS dS )z2
Return the execution module virtualname.
�statuspage.createT)Fz%statuspage module could not be loaded)�__salt__� r r �J/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/statuspage.py�__virtual__* s r c C s | ddi d�S )z&
Default dictionary returned.
F� )r �result�comment�changesr )r r r r �_default_ret3 s r c C s g g g d�S )zA
Default dictionary retuned by the _compute_diff helper.
��add�update�remover r r r r �_compute_diff_ret: s r c C � dd� | � � D �S )zI
Eliminates None entries from the features of the endpoint dict.
c S s i | ]\}}|d ur||�qS �Nr ��.0Z prop_nameZprop_valr r r �
<dictcomp>E �
�z_clear_dict.<locals>.<dictcomp>��items�Zendpoint_propsr r r �_clear_dictA � �r c C r )z�
Ignores some keys that might be different without any important info.
These keys are defined under _DO_NOT_COMPARE_FIELDS.
c S s i | ]\}}|t vr||�qS r ��_DO_NOT_COMPARE_FIELDSr r r r r Q r z _ignore_keys.<locals>.<dictcomp>r r r r r �_ignore_keysL s �r! c C s$ g }| D ]}||vr|� |� q|S )zZ
Returns an unique list of dictionaries given a list that may contain duplicates.
)�append)Z
list_of_dictsZunique_list�eler r r �_uniqueX s
�r$ c C r )zB
Both _clear_dict and _ignore_keys in a single iteration.
c S s&