Current File : //usr/lib/python2.7/site-packages/sos/plugins/autofs.pyc
�
u��ec@sqddlmZmZmZmZdefd��YZdeefd��YZdeeefd��YZdS(	i����(tPlugintRedHatPlugintUbuntuPlugintDebianPlugintAutofscBsJeZdZdZd
ZdZdZd�Zd�Zd�Z	d	�Z
RS(
s!Autofs on-demand automounter
    tautofststoragetnfss/etc/sysconfig/autofss/etc/default/autofscCsT|jd|j�}x8|D]0}x'|jd�D]}|dkr2tSq2WqWtS(s; testing if autofs debug has been enabled anywhere
        s%^(DEFAULT_LOGGING|DAEMONOPTIONS)=(.*)t s--debugtdebug(s--debugsdebug(t	file_greptfilestsplittTruetFalse(tselftopttopt1topt2((s6/usr/lib/python2.7/site-packages/sos/plugins/autofs.pyt
checkdebugs	
cCs/|jd|j�}x|D]}|dSWdS(s% capture daemon debug output
        s^(daemon.*)\s+(\/var\/log\/.*)iN(R
R(Rtdebugoutti((s6/usr/lib/python2.7/site-packages/sos/plugins/autofs.pytgetdaemondebug$s	
cCsM|jd�|jd�|jd�|j�rI|j|j��ndS(Ns
/etc/auto*Rsautomount -m(t
add_copy_spectadd_service_statustadd_cmd_outputRR(R((s6/usr/lib/python2.7/site-packages/sos/plugins/autofs.pytsetup,s



cCs|jddd�dS(Ns
/etc/auto*s(password=)[^,\s]*s
\1********(tdo_path_regex_sub(R((s6/usr/lib/python2.7/site-packages/sos/plugins/autofs.pytpostproc3s(RR(s/etc/sysconfig/autofss/etc/default/autofs(sautofs(t__name__t
__module__t__doc__tplugin_nametprofilesRtpackagesRRRR(((s6/usr/lib/python2.7/site-packages/sos/plugins/autofs.pyRs			tRedHatAutofscBseZd�ZRS(cCs6tt|�j�|jd�r2|jd�ndS(Ntverifysrpm -qV autofs(tsuperR#Rt
get_optionR(R((s6/usr/lib/python2.7/site-packages/sos/plugins/autofs.pyR=s(RRR(((s6/usr/lib/python2.7/site-packages/sos/plugins/autofs.pyR#;stDebianAutofscBseZd�ZRS(cCs$tt|�j�|jd�dS(Nsdpkg-query -s autofs(R%R'RR(R((s6/usr/lib/python2.7/site-packages/sos/plugins/autofs.pyREs(RRR(((s6/usr/lib/python2.7/site-packages/sos/plugins/autofs.pyR'CsN(tsos.pluginsRRRRRR#R'(((s6/usr/lib/python2.7/site-packages/sos/plugins/autofs.pyt<module>s"-