idy tddlZddlZddlmZmZddlmZddlmZddl m Z GddeZ Gdd e Z y) N) RedHatPlugin SuSEPlugin) LinuxPolicy)RpmPackageManager)_soscTeZdZdZdZdgZdZ dfd Zed dZ dZ dZ xZ S) SuSEPolicySuSE)zDistribution Websitezhttps://www.suse.com/z/var/tmpctt| |||||xjtt gz c_d|_t|_|jjs0|jjdtjdd|_|xjtj dzz c_|xjtj dzz c_|j#y)Nsysrootinit 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_subclassesrrusrmoverpackage_managerpackagesui_logerrorsysexitPATHospathsep set_exec_pathselfr rrr __class__s ;/usr/lib/python3/dist-packages/sos/policies/distros/suse.pyrzSuSEPolicy.__init__s j$(t7D5@ ) B *l!;; 02##,, KK  H I HHQK8  RZZ"222  RZZ"333  cy)zThis 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.Fclsremotes r#checkzSuSEPolicy.check-s r$c"|s |jS|SN)_tmp_dir)r! opt_tmp_dirs r# get_tmp_dirzSuSEPolicy.get_tmp_dir4s== r$c"|jSr,) host_name)r!s r#get_local_namezSuSEPolicy.get_local_name9s~~r$NNTN)) __name__ __module__ __qualname__distrovendor vendor_urlsr-r classmethodr*r/r2 __classcell__r"s@r#r r sC F FDEKH>B!(   r$r cReZdZdZdZdgZedZ dfd Ze dZ xZ S)OpenSuSEPolicyOpenSuSEr )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 c4tt| ||||y)Nr )rr?rr s r#rzOpenSuSEPolicy.__init__Ns" nd,W4;H9D - Fr$c`|r|j|vStjjdS)z=This method checks to see if we are running on SuSE. z/etc/SUSE-brand)r8rpathisfiler's r#r*zOpenSuSEPolicy.checkTs* ::' 'ww~~/00r$r3) r5r6r7r8r9r:_msgrr;r*r<r=s@r#r?r?=sG F FEFK  C?C!F 11r$r?)rrsos.report.pluginsrrsos.policies.distrosr!sos.policies.package_managers.rpmrsosrrEr r?r&r$r#rKs2 7,?' ' T1Z1r$