Viewing File: /usr/lib/python2.7/site-packages/sos/plugins/sos_extras.pyo

ó
ÑKjc@s]ddlmZmZmZmZddlZddlZdeeeefd„ƒYZdS(iÿÿÿÿ(tPlugintRedHatPlugintUbuntuPlugintDebianPluginNt	SosExtrascBs)eZdZdZdZeZd„ZRS(s7Collect extra data defined in /etc/sos.extras.d/ .
    t
sos_extrass/etc/sos.extras.d/c
Csy]tj|jƒ}|jdksD|jtj@sD|jtj@r\|jd|jƒdSWn&tk
r…|jd|jƒdSX|j	|jƒxytj
|jƒD]e\}}}xS|D]K}tjj||ƒ}|jd|ƒyúxót
|ƒjƒjƒD]Ù}t|jƒƒdks|jdƒr:qn|jdƒrÍ|jƒ}d}	t|ƒdkr¯yt|dƒ}	Wq¯tk
r«|jd||fƒq¯Xn|j	|ddd	|	ƒq|j|d
|ƒqWWq¿tk
r	|jd|ƒq¿Xq¿Wq©WdS(Nis@Skipping sos extras as %s has too wide permissions or ownership.s"can't stat %s, skipping sos extrass#Collecting data from extras file %st#t:isFCan't decode integer sizelimit on line '%s' in file %s, using default.t	sizelimittsubdirsunable to read extras file %s(toststatt
extras_dirtst_uidtst_modetS_IWGRPtS_IWOTHt	_log_warntOSErrort
add_copy_spectwalktpathtjointopentreadt
splitlinestlentsplitt
startswithtNonetintt
ValueErrortadd_cmd_outputtIOError(
tselftstRtdirlisttfilelisttft_filetlinetwordstlimit((s:/usr/lib/python2.7/site-packages/sos/plugins/sos_extras.pytsetup.sB	
	"
'
	
(t__name__t
__module__t__doc__tplugin_nameRtfilesR+(((s:/usr/lib/python2.7/site-packages/sos/plugins/sos_extras.pyRs
(tsos.pluginsRRRRR
RR(((s:/usr/lib/python2.7/site-packages/sos/plugins/sos_extras.pyt<module>	s"
Back to Directory File Manager