HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/sos/policies/distros/__pycache__/suse.cpython-38.pyc
U

i��dy�@shddlZddlZddlmZmZddlmZddlmZddl	m
ZGdd�de�ZGdd	�d	e�Z
dS)
�N)�RedHatPlugin�
SuSEPlugin)�LinuxPolicy)�RpmPackageManager)�_soscsNeZdZdZdZdgZdZd�fdd�	Zedd	d
��Z	dd�Z
d
d�Z�ZS)�
SuSEPolicy�SuSE)zDistribution Websitezhttps://www.suse.com/z/var/tmpNTcs�tt|�j||||d�|jttg7_d|_t�|_|jj	sV|j
�d�t�
d�d|_|jtjd7_|jtjd7_|��dS)N��sysroot�init�
probe_runtime�remote_execFz(Could not obtain installed package list.�z"/usr/sbin:/usr/bin:/root/bin:/sbinz/usr/local/binz/usr/local/sbin)�superr�__init__Zvalid_subclassesrrZusrmoverZpackage_managerZpackagesZui_log�error�sys�exit�PATH�os�pathsepZ
set_exec_path��selfr
rrr
��	__class__��;/usr/lib/python3/dist-packages/sos/policies/distros/suse.pyrs�
zSuSEPolicy.__init__�cCsdS)z�This method checks to see if we are running on SuSE. It must be
        overriden by concrete subclasses to return True when running on an
        OpenSuSE, SLES or other Suse distribution and False otherwise.Fr��clsZremoterrr�check-szSuSEPolicy.checkcCs|s
|jS|S�N)�_tmp_dir)rZopt_tmp_dirrrr�get_tmp_dir4szSuSEPolicy.get_tmp_dircCs|��Sr!)Z	host_name)rrrr�get_local_name9szSuSEPolicy.get_local_name)NNTN)r)
�__name__�
__module__�__qualname__�distro�vendor�vendor_urlsr"r�classmethodr r#r$�
__classcell__rrrrrs�rcs@eZdZdZdZdgZed�Zd�fdd�	Ze	d	d
��Z
�ZS)�OpenSuSEPolicyZOpenSuSEr)zCommunity Websitezhttps://www.opensuse.org/aJThis command will collect diagnostic and configuration information from this %(distro)s system and installed applications.

An archive containing the collected information will be generated in %(tmpdir)s and may be provided to a %(vendor)s support representative.

No changes will be made to system configuration.
%(vendor_text)s
NTcstt|�j||||d�dS)Nr	)rr-rrrrrrNs�zOpenSuSEPolicy.__init__cCs|r|j|kStj�d�S)z=This method checks to see if we are running on SuSE.
        z/etc/SUSE-brand)r(r�path�isfilerrrrr Ts
zOpenSuSEPolicy.check)NNTN)r%r&r'r(r)r*�_�msgrr+r r,rrrrr-=s
�r-)rrZsos.report.pluginsrrZsos.policies.distrosrZ!sos.policies.package_managers.rpmrZsosrr0rr-rrrr�<module>
s*