o
    Û1jj  ã                   @   s8   d dl mZmZ d dlmZ dd„ ZG dd„ deƒZdS )é    )Ú	CosPluginÚIndependentPlugin)ÚLinuxPolicyc                 C   s   |   ¡  p|  ¡  d¡S )aH  Test whether line is empty of contains a comment.

        Test whether the ``line`` argument is either blank, or a
        whole-line comment.

        :param line: the line of text to be checked.
        :returns: ``True`` if the line is blank or a comment,
                  and ``False`` otherwise.
        :rtype: bool
    ú#)ÚstripÚlstripÚ
startswith)Úline© r
   ú:/usr/lib/python3/dist-packages/sos/policies/distros/cos.pyÚ_blank_or_comment   s   r   c                       s@   e Zd ZdZdgZdZdZeegZ	dZ
		d
‡ fdd	„	Z‡  ZS )Ú	CosPolicyzGoogle Cloud Platform)zDistribution Websitez0https://cloud.google.com/container-optimized-os/zContainer-Optimized OSÚcosz</usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbinNTc                    s(   t ƒ j||||d� |  jtg7  _d S )N)ÚsysrootÚinitÚprobe_runtimeÚremote_exec)ÚsuperÚ__init__Úvalid_subclassesr   )Úselfr   r   r   r   ©Ú	__class__r
   r   r   (   s
   
þzCosPolicy.__init__)NNTN)Ú__name__Ú
__module__Ú__qualname__ÚvendorÚvendor_urlsÚos_release_nameÚos_release_idr   r   r   ÚPATHr   Ú__classcell__r
   r
   r   r   r      s    ÿÿr   N)Úsos.report.pluginsr   r   Úsos.policies.distrosr   r   r   r
   r
   r
   r   Ú<module>   s   
