File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/textfsm_mod.cpython-310.pyc
Back
o ;jsA � @ s� d Z ddlZddlZddlZzddlZdZW n ey! dZY nw z ddlmZ dZ W n ey7 dZ Y nw e� e�ZdZ dgZdd � Zd d� Zdd d�Z ddd�ZdS )a� TextFSM ======= .. versionadded:: 2018.3.0 Execution module that processes plain text and extracts data using TextFSM templates. The output is presented in JSON serializable data, and can be easily re-used in other modules, or directly inside the renderer (Jinja, Mako, Genshi, etc.). :depends: - textfsm Python library .. note:: Install ``textfsm`` library: ``pip install textfsm``. � NTF)�clitable�textfsm�*c C s t rtS dS )zB Only load this execution module if TextFSM is installed. )FzJThe textfsm execution module failed to load: requires the textfsm library.)�HAS_TEXTFSM�__virtualname__� r r �L/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/textfsm_mod.py�__virtual__, s r c C s^ g }t �d| |� | D ]}i }t|�D ] \}}|||j| �� <