ó uÈÔec@s3ddlmZmZdeefd„ƒYZdS(iÿÿÿÿ(tPlugint RedHatPlugintRedHatInsightscBs>eZdZdZddgZd Zd Zd„Zd „ZRS( s0Collect config and log for Red Hat Insights tinsightssredhat-access-insightssinsights-clienttsystemtsysmgmts)/etc/insights-client/insights-client.confs7/etc/redhat-access-insights/redhat-access-insights.confcCsp|j|jƒ|jdƒ|jdƒr<|jdƒn |jdƒ|jddƒ}|jd|ƒdS(Ns%/var/log/redhat-access-insights/*.logtall_logss/var/log/insights-client/*.log*s,/var/log/insights-client/insights-client.logtnamesinsights-client-dumps)insights-client --offline --output-dir %s(t add_copy_spectconfigt get_optiontget_cmd_output_pathtadd_cmd_output(tselftpath((s8/usr/lib/python2.7/site-packages/sos/plugins/insights.pytsetups  cCs>x7|jD],}|j|ddƒ|j|ddƒq WdS(Ns(password[\t\ ]*=[\t\ ]*)(.+)s \1********s(proxy[\t\ ]*=.*)(:)(.*)(@.*)s\1\2********\4(R t do_file_sub(R tconf((s8/usr/lib/python2.7/site-packages/sos/plugins/insights.pytpostproc&s  (ssystemR(s)/etc/insights-client/insights-client.confs7/etc/redhat-access-insights/redhat-access-insights.conf( t__name__t __module__t__doc__t plugin_nametpackagestprofilesR RR(((s8/usr/lib/python2.7/site-packages/sos/plugins/insights.pyR s  N(t sos.pluginsRRR(((s8/usr/lib/python2.7/site-packages/sos/plugins/insights.pyt s