Ë
    i©¹d  ã                   ó<   — d dl mZmZ d dlmZ d„ Z G d„ de«      Zy)é    )Ú	CosPluginÚIndependentPlugin)ÚLinuxPolicyc                 óf   — | j                  «        xs | j                  «       j                  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)Úlines    ú:/usr/lib/python3/dist-packages/sos/policies/distros/cos.pyÚ_blank_or_commentr      s)   € ð �z‰z‹|ÐÒ<˜tŸ{™{›}×7Ñ7¸Ó<Ð<ó    c                   óP   ‡ — e Zd ZdZdZdgZeegZdZ		 	 dˆ fd„	Z
edd„«       Zˆ xZS )	Ú	CosPolicyzContainer-Optimized OSzGoogle Cloud Platform)zDistribution Websitez0https://cloud.google.com/container-optimized-os/z</usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbinc                 óh   •— t         t        | �  ||||¬«       | xj                  t        gz  c_        y )N)ÚsysrootÚinitÚprobe_runtimeÚremote_exec)Úsuperr   Ú__init__Úvalid_subclasses)Úselfr   r   r   r   Ú	__class__s        €r   r   zCosPolicy.__init__'   s7   ø€ äŒi˜Ñ'°¸dØ6CØ4?ð 	(ô 	Að 	×Ò¤) Ñ,Ör   c                 óÆ   — |r| j                   |v S 	 t        dd«      5 }t        d„ |D «       «      }|d   dk(  cd d d «       S # 1 sw Y   y xY w# t        t        f$ r Y yw xY w)Nz/etc/os-releaseÚrc              3   óp   K  — | ].  }t        |«      s!|j                  «       j                  d «      –— Œ0 y­w)ú=N)r   r   Úsplit)Ú.0r   s     r   ú	<genexpr>z"CosPolicy.check.<locals>.<genexpr>5   s2   è ø€ ò "B¸dÜ):¸4Ô)@ð #'§*¡*£,×"4Ñ"4°S×"9ñ "Bùs   ‚46ÚIDÚcosF)ÚdistroÚopenÚdictÚIOErrorÚKeyError)ÚclsÚremoteÚfpÚ
os_releases       r   ÚcheckzCosPolicy.check.   sy   € áØ—:‘: Ð'Ð'ð	ÜÐ'¨Ó-ð 1°Ü!ñ "BÀbô "Bó B�
à! $Ñ'¨5Ñ0÷1÷ 1ò 1ûô œÐ"ò 	Ùð	ús-   ’A žA¸	A ÁAÁA ÁA ÁA ÁA )NNTN)Ú )Ú__name__Ú
__module__Ú__qualname__r$   ÚvendorÚvendor_urlsr   r   r   ÚPATHr   Úclassmethodr-   Ú__classcell__)r   s   @r   r   r      sK   ø„ Ø%€FØ$€Fð	=ð€Kð "Ð#4Ð5ÐØI€Dà>BØ!õ-ð ò
ó ô
r   r   N)Úsos.report.pluginsr   r   Úsos.policies.distrosr   r   r   © r   r   ú<module>r:      s   ð÷ <Ý ,ò=ô�õ r   