Current File : //lib/python2.7/site-packages/sos/plugins/sos_extras.pyo
�
u��ec@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"