File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/arcconf.cpython-310.pyc
o
-�_g� � @ s. d dl Z d dlmZmZ G dd� dee�ZdS )� N)�Plugin�IndependentPluginc @ s$ e Zd ZdZdZdZdZdd� ZdS )�ArcConfz�
The ArcConf plugin is meant for sas adapters, and will collect logs and
information for each RAID adapter discovered on the system.
z+arcconf Integrated RAID adapter information�arcconf)r c C s� | � d�}|d dkr>|d �� D ].}z!t�d|��d�}|�� d }|r3| �d|� �d|� d �g� W q ty= Y qw d S d S )
Nzarcconf list�statusr �outputz^[\s]*Controller (\d)+� zarcconf getconfig zarcconf GETLOGS z UART)�collect_cmd_output�
splitlines�re�match�group�split�add_cmd_output�AttributeError)�self�listarcconf�liner �
controller_id� r �</usr/lib/python3/dist-packages/sos/report/plugins/arcconf.py�setup s"