HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/sos/policies/distros/__pycache__/suse.cpython-312.pyc
�

O6uf
��t�ddlZddlZddlmZmZddlmZddlmZddl	m
ZGd�de�ZGd�d	e�Z
y)
�N)�RedHatPlugin�
SuSEPlugin)�LinuxPolicy)�RpmPackageManager)�_sosc�T��eZdZdZdZdgZdZ		d�fd�	Zed	d��Z	d�Z
d�Z�xZS)
�
SuSEPolicy�SuSE)zDistribution Websitezhttps://www.suse.com/z/var/tmpc����t�|�||||��|xjttgz
c_d|_t
�|_|jjs0|jjd�tjd�d|_
|xjtjdzz
c_
|xjtjdzz
c_
|j!�y)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)�super�__init__�valid_subclassesrr�usrmover�package_manager�packages�ui_log�error�sys�exit�PATH�os�pathsep�
set_exec_path��selfr
rrr�	__class__s     ��;/usr/lib/python3/dist-packages/sos/policies/distros/suse.pyrzSuSEPolicy.__init__s����
����t�'4�%0�	�	2�	
���*�l�!;�;�����0�2����#�#�,�,��K�K���H�I��H�H�Q�K�8��	��	�	�R�Z�Z�"2�2�2�	��	�	�R�Z�Z�"3�3�3�	�����c��y)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.F���cls�remotes  r#�checkzSuSEPolicy.check-s��
r$c�"�|s|jS|S�N)�_tmp_dir)r!�opt_tmp_dirs  r#�get_tmp_dirzSuSEPolicy.get_tmp_dir4s����=�=� ��r$c�"�|j�Sr,)�	host_name)r!s r#�get_local_namezSuSEPolicy.get_local_name9s���~�~��r$�NNTN)�)
�__name__�
__module__�__qualname__�distro�vendor�vendor_urlsr-r�classmethodr*r/r2�
__classcell__�r"s@r#r	r	sC���
�F�
�F�D�E�K��H�>B�!��(�����
 r$r	c�R��eZdZdZdZdgZed�Z		d�fd�	Ze	d��Z
�xZS)�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
c�,��t�|�||||��y)Nr)rrr s     �r#rzOpenSuSEPolicy.__init__Ns���
����t�'4�%0�	�	2r$c�`�|r|j|vStjjd�S)z=This method checks to see if we are running on SuSE.
        z/etc/SUSE-brand)r8r�path�isfiler's  r#r*zOpenSuSEPolicy.checkTs*��
��:�:��'�'��w�w�~�~�/�0�0r$r3)r5r6r7r8r9r:�_�msgrr;r*r<r=s@r#r?r?=sF���
�F�
�F�E�F�K�
�
��C�?C�!�2��1��1r$r?)rr�sos.report.pluginsrr�sos.policies.distrosr�!sos.policies.package_managers.rpmr�sosrrEr	r?r&r$r#�<module>rKs2��
�
�7�,�?��' ��' �T1�Z�1r$