HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/sos/policies/distros/__pycache__/suse.cpython-310.pyc
o

i��dy�@shddlZddlZddlmZmZddlmZddlmZddl	m
ZGdd�de�ZGdd	�d	e�Z
dS)
�N)�RedHatPlugin�
SuSEPlugin)�LinuxPolicy)�RpmPackageManager)�_soscsReZdZdZdZdgZdZ		d�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	s+|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__�valid_subclassesrr�usrmover�package_manager�packages�ui_log�error�sys�exit�PATH�os�pathsep�
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!��cls�remoter!r!r"�check-szSuSEPolicy.checkcCs|s|jS|S�N)�_tmp_dir)r�opt_tmp_dirr!r!r"�get_tmp_dir4szSuSEPolicy.get_tmp_dircCs|��Sr()�	host_name)rr!r!r"�get_local_name9szSuSEPolicy.get_local_name�NNTN)r#)
�__name__�
__module__�__qualname__�distro�vendor�vendor_urlsr)r�classmethodr'r+r-�
__classcell__r!r!rr"rs�rcsDeZdZdZdZdgZed�Z		d�fdd�	Ze	d	d
��Z
�ZS)�OpenSuSEPolicy�OpenSuSEr)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	)rr7rrrr!r"rNs
�zOpenSuSEPolicy.__init__cCs|r|j|vStj�d�S)z=This method checks to see if we are running on SuSE.
        z/etc/SUSE-brand)r2r�path�isfiler$r!r!r"r'Ts
zOpenSuSEPolicy.checkr.)r/r0r1r2r3r4�_�msgrr5r'r6r!r!rr"r7=s
�r7)rr�sos.report.pluginsrr�sos.policies.distrosr�!sos.policies.package_managers.rpmr�sosrr;rr7r!r!r!r"�<module>s	*