File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/event.cpython-310.pyc
o
�N�g� � @ s� d Z ddlZddlZddlZddlZddlmZ ddlZddl Zddl
ZddlZddlZdgZ
e�e�Zdd� Zddd�Zd d
� Z ddd
�ZdS )zh
Use the :ref:`Salt Event System <events>` to fire events from the
master to the minion and vice-versa.
� N)�Mapping�*c s � fdd�|� � D �S )zQ
Return a dictionary of only the subset of keys/values specified in keys
c s i | ]\}}|� v r||�qS � r )�.0�k�v��keysr �F/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/event.py�
<dictcomp> s z _dict_subset.<locals>.<dictcomp>)�items)r Zmaster_dictr r r
�_dict_subset s r
c
C s� t �dd�st �dd�dkrt �dd�st�d|� dS |s%t �d�dkr�d t vr=d
jtjj�t d �t �dd
�d�t d <