U
    -_gv                     @   s&   d dl mZmZ G dd deeZdS )    )PluginRedHatPluginc                   @   s$   e Zd ZdZdZdZdZdd ZdS )	OvirtNodezoVirt Node specific information)Zimgbasedzovirt-node-ng-nodectlZ
ovirt_node)Zvirtc                 C   sF   |  ddg ddddddg}| d	d
dg | dd |D  d S )Nz/var/log/imgbased.logz/tmp/imgbased.logz/etc/pki/vdsm/certs/cacert.pemz /etc/pki/vdsm/certs/vdsmcert.pemz'/etc/pki/vdsm/libvirt-spice/ca-cert.pemz+/etc/pki/vdsm/libvirt-spice/server-cert.pemz%/etc/pki/vdsm/libvirt-vnc/ca-cert.pemz)/etc/pki/vdsm/libvirt-vnc/server-cert.pemzimgbase layoutz nodectl --machine-readable checkznodectl infoc                 S   s   g | ]}d | dqS )zopenssl x509 -in z -text -noout ).0cr   r   ?/usr/lib/python3/dist-packages/sos/report/plugins/ovirt_node.py
<listcomp>4   s    z#OvirtNode.setup.<locals>.<listcomp>)Zadd_copy_specZadd_cmd_output)selfZcertificatesr   r   r   setup   s&    

zOvirtNode.setupN)__name__
__module____qualname__Z
short_descZpackagesZplugin_nameZprofilesr   r   r   r   r   r      s
   r   N)Zsos.report.pluginsr   r   r   r   r   r   r   <module>   s   