ó uÈÔec@sxddlmZddlmZmZmZddlmZddlZdefd„ƒYZ defd„ƒYZ dS( iÿÿÿÿ(tprint_function(tPowerKVMPlugint ZKVMPlugint RedHatPlugin(t RedHatPolicyNtPowerKVMPolicycBs>eZdZdZdZdd„Zed„ƒZd„Z RS(tPowerKVMtIBMs;http://www-03.ibm.com/systems/power/software/linux/powerkvmcCs,tt|ƒjd|ƒttg|_dS(Ntsysroot(tsuperRt__init__RRtvalid_subclasses(tselfR((s7/usr/lib/python2.7/site-packages/sos/policies/ibmkvm.pyR scCstjjdƒS(s]This method checks to see if we are running on PowerKVM. It returns True or False.s/etc/ibm_powerkvm-release(tostpathtisfile(tcls((s7/usr/lib/python2.7/site-packages/sos/policies/ibmkvm.pytcheckscCsMy4tddƒ}|jƒ}|ddSWdQXWntk rHtSXdS(Ns/etc/ibm_powerkvm-releasetrii(topentreadtIOErrortFalse(R tfptversion_string((s7/usr/lib/python2.7/site-packages/sos/policies/ibmkvm.pyt dist_version$s   N( t__name__t __module__tdistrotvendort vendor_urltNoneR t classmethodRR(((s7/usr/lib/python2.7/site-packages/sos/policies/ibmkvm.pyRs  t ZKVMPolicycBs>eZdZdZdZdd„Zed„ƒZd„Z RS(sIBM Hypervisors9http://www.ibm.com/systems/z/linux/IBMHypervisor/support/cCs,tt|ƒjd|ƒttg|_dS(NR(R R!R RRR (R R((s7/usr/lib/python2.7/site-packages/sos/policies/ibmkvm.pyR 2scCstjjdƒS(s[This method checks to see if we are running on IBM Z KVM. It returns True or False.s/etc/base-release(R RR(R((s7/usr/lib/python2.7/site-packages/sos/policies/ibmkvm.pyR6scCsYy@tddƒ+}|jƒ}|jddƒddSWdQXWntk rTtSXdS(Ns/etc/base-releaseRt iii(RRtsplitRR(R RR((s7/usr/lib/python2.7/site-packages/sos/policies/ibmkvm.pyR<s  " N( RRRRRRR R RR(((s7/usr/lib/python2.7/site-packages/sos/policies/ibmkvm.pyR!-s  ( t __future__Rt sos.pluginsRRRtsos.policies.redhatRR RR!(((s7/usr/lib/python2.7/site-packages/sos/policies/ibmkvm.pyt s