File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/__pycache__/beacons.cpython-310.pyc
o
�N�g � @ s d Z ddlZdd� Zdd� ZdS )z
Utilies for beacons
� Nc C s: t � | �D ]}|D ]}|�d�r||vr| �|� q q| S )z3
Remove any hidden options not whitelisted
�_)�copy�
startswith�remove)�configZ whitelist�entry�func� r �F/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/beacons.py�remove_hidden_options s
��r c C s i }t t|j| �� |S )zH
Convert list based beacon configuration
into a dictionary.
)�list�map�update)r Z_configr r r
�list_to_dict s r )�__doc__r r r r r r r
�<module> s