U
    -_gj                     @   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 OSZ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__ZvendorZvendor_urlsZos_release_nameZos_release_idr   r   r   PATHr   __classcell__r
   r
   r   r   r      s     r   N)Zsos.report.pluginsr   r   Zsos.policies.distrosr   r   r   r
   r
   r
   r   <module>   s   