o
    *bx  ã                   @   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   s<   |   ddg¡ g d¢}|  g d¢¡ |  dd„ |D ƒ¡ d S )Nz/var/log/imgbased.logz/tmp/imgbased.log)z/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.pem)zimgbase layoutz nodectl --machine-readable checkznodectl infoc                 S   s   g | ]}d | ‘qS )z openssl x509 -in %s -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   
