id<ddlmZmZddlZddlZGddeeZy))PluginIndependentPluginNc&eZdZdZ dZdZefZdZy) SosExtrasz/Collect extra data defined in /etc/sos/extras.d sos_extrasz/etc/sos/extras.d/c @ tj|j}|jdk7s:|jtj zs|jtj zr|jd|jzy tj|jD]\}}}|D]}|j||}|jd|z t|jjD]}t|jdk(s|j!dr1|j!drI|j}d} t|dkDr t#|d} |j'|ddd| |j)|| y#t$r!|jd|jzYywxYw#t$$r|jd|d |d YwxYw#t*$r|jd |zYjwxYw)Nrz@Skipping sos extras as %s has too wide permissions or ownership.z"can't stat %s, skipping sos extrasz#Collecting data from extras file %s#:z(Can't decode integer sizelimit on line 'z ' in file z, using default.) sizelimit)subdirzunable to read extras file %s)osstat extras_dirst_uidst_modeS_IWGRPS_IWOTH _log_warnOSErrorwalk path_joinopenread splitlineslensplit startswithint ValueError add_copy_specadd_cmd_outputIOError) selfstpathdirlistfilelistf_filelinewordslimits ?/usr/lib/python3/dist-packages/sos/report/plugins/sos_extras.pysetupzSosExtras.setup.s )B QBJJ$= T\\) <>Boo NO*(*wwt'? L #D'8 LtQ/DuLML $U 0 0 2 = = ?@tzz|,1T__S5I$ ??3/$(JJLE$(E"5zA~!D,/aME!..uQx|u.M!//Q/?+@  L L   NN???+ ,  ,(2!D$(NN7;E 4C%D!DLNN#BU#JKLsIBF(B G<&G4/G<('GG!G9 6G<8G9 9G<<HHN)__name__ __module__ __qualname__ short_desc plugin_namerfilesr/r.rrs%BJ,K%J ME*Lr7r)sos.report.pluginsrrrrrr6r7r.r9s#9 JL)JLr7