|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/policies/distros/__pycache__/ |
Upload File : |
o
([Qh� � @ sh d dl Z d dlZd dlmZmZ d dlmZ d dlmZ d dl m
Z G dd� de�ZG dd � d e�Z
dS )
� N)�RedHatPlugin�
SuSEPlugin)�LinuxPolicy)�RpmPackageManager)�_sosc sR e Zd ZdZdZdgZdZ d� fdd� Zedd d
��Z dd� Z
d
d� Z� ZS )�
SuSEPolicy�SuSE)zDistribution Websitezhttps://www.suse.com/z/var/tmpNTc s� t � j||||d� | jttg7 _d| _t� | _| jjs)| j �
d� t�d� d| _
| j
tjd 7 _
| j
tjd 7 _
| �� d S )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_subclassesr r �usrmover �package_manager�packages�ui_log�error�sys�exit�PATH�os�pathsep�
set_exec_path��selfr
r r r
�� __class__� �;/usr/lib/python3/dist-packages/sos/policies/distros/suse.pyr s
�
zSuSEPolicy.__init__� c C s dS )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"