HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/sos/policies/distros/__pycache__/suse.cpython-310.pyc
o

���b}�@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,t
dtjd�t�
d�d|_|jtjd7_|jtjd7_|��dS)	N��sysroot�init�
probe_runtime�remote_execFz'Could not obtain installed package list)�file�z"/usr/sbin:/usr/bin:/root/bin:/sbinz/usr/local/binz/usr/local/sbin)�superr�__init__�valid_subclassesrr�usrmover�package_manager�packages�print�sys�stderr�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"r r#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	)rr8rrr r"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)r3r�path�isfiler%r"r"r#r(Ts
zOpenSuSEPolicy.checkr/)r0r1r2r3r4r5�_�msgrr6r(r7r"r"r r#r8=s
�r8)rr�sos.report.pluginsrr�sos.policies.distrosr�!sos.policies.package_managers.rpmr�sosrr<rr8r"r"r"r#�<module>s	*