File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/munin.cpython-310.pyc
o
�N�g~ � @ sV d Z ddlZddlZddlZddlZdZdd� Zddd�Zd d
� Z dd� Z
d
d� ZdS )zC
Run munin plugins/checks from salt and format the output as data.
� Nz/etc/munin/plugins/c C s t j�d�rdS dS )z9
Only load the module if munin-node is installed
z/etc/munin/munin-node.confZmunin)FzIThe munin execution module cannot be loaded: munin-node is not installed.)�os�path�exists� r r �F/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/munin.py�__virtual__ s r �/etc/munin/munin-node.cfgc C sF t jj�| d��}t jj�|�� �W d � S 1 sw Y d S )N�r)�salt�utils�filesZfopenZstringutilsZ
to_unicode�read)�fnameZfp_r r r � _get_conf s $�r c
C s� t � }t| t�r
| �d�} i }| D ]O}||vrqi ||<