Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/policies/distros/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/policies/distros/__pycache__/cos.cpython-310.pyc
o

i��d�@s8ddlmZmZddlmZdd�ZGdd�de�ZdS)�)�	CosPlugin�IndependentPlugin)�LinuxPolicycCs|��p|���d�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)�line�r
�:/usr/lib/python3/dist-packages/sos/policies/distros/cos.py�_blank_or_commentsrcsJeZdZdZdZdgZeegZdZ			d�fdd�	Z
ed
d
d��Z�Z
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:/sbinNTcs,tt|�j||||d�|jtg7_dS)N)�sysroot�init�
probe_runtime�remote_exec)�superr
�__init__�valid_subclasses)�selfrrrr��	__class__r
rr's
�zCosPolicy.__init__�c	Csx|r|j|vSz(tdd��}tdd�|D��}|ddkWd�WS1s(wYWdSttfy;YdSw)Nz/etc/os-release�rcss&�|]}t|�s|���d�VqdS)�=N)rr�split)�.0r	r
r
r�	<genexpr>5s��z"CosPolicy.check.<locals>.<genexpr>�ID�cosF)�distro�open�dict�IOError�KeyError)�cls�remote�fp�
os_releaser
r
r�check.s

(��zCosPolicy.check)NNTN)r)�__name__�
__module__�__qualname__r �vendor�vendor_urlsrrr�PATHr�classmethodr)�
__classcell__r
r
rrr
s��r
N)�sos.report.pluginsrr�sos.policies.distrosrrr
r
r
r
r�<module>s


Spamworldpro Mini