o
    O6uf¶  ã                   @   s6   d dl mZmZmZ d dlmZ G dd„ deeƒZdS )é    )ÚPluginÚUbuntuPluginÚSoSPredicate)Úis_executablec                   @   s    e Zd ZdZdZdZdd„ ZdS )ÚUbuntuzUbuntu specific informationÚubuntu)Úsystemc                 C   s¤   |   ddg¡ |  d¡rPtdƒrd}n	tdƒrd}nd}t| d	gd
�}| j ||dd� | j |› d�|dd� |  d¡sD|  g d¢¡ d S |  d¡ |  d¡ d S d S )Nz1ubuntu-security-status --thirdparty --unavailablezhwe-support-status --verbosezubuntu-advantage-toolsÚuaz	ua statusÚproz
pro statuszubuntu-advantage statusÚtls)ÚkmodsT)ÚpredÚchangesz --format jsonÚall_logs)z/var/log/ubuntu-advantage.logz/var/log/ubuntu-advantage.log.1z /var/log/ubuntu-advantage.log.2*z#/var/log/ubuntu-advantage-timer.logz%/var/log/ubuntu-advantage-timer.log.1z&/var/log/ubuntu-advantage-timer.log.2*z/var/log/ubuntu-advantage.log*z$/var/log/ubuntu-advantage-timer.log*)Úadd_cmd_outputÚis_installedr   r   Ú
get_optionÚadd_copy_spec)ÚselfÚua_tools_statusÚua_pred© r   ú;/usr/lib/python3/dist-packages/sos/report/plugins/ubuntu.pyÚsetup   s,   þ
ÿÿ

	èzUbuntu.setupN)Ú__name__Ú
__module__Ú__qualname__Ú
short_descÚplugin_nameÚprofilesr   r   r   r   r   r      s
    r   N)Úsos.report.pluginsr   r   r   Úsos.utilitiesr   r   r   r   r   r   Ú<module>   s   