o
    i©¹dú  ã                   @   s2   d dl mZmZ d dlmZ G dd„ deeƒZdS )é    )ÚPluginÚUbuntuPlugin)Ú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¡rBtdƒrd}n	tdƒrd}nd}|   |¡ |   d	| ¡ |  d
¡s6|  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 statusz%s --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   Ú
get_optionÚadd_copy_spec)ÚselfÚua_tools_status© 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   Úsos.utilitiesr   r   r   r   r   r   Ú<module>   s   