a >h@s.ddlZddlmZmZGdddeeZdS)N)Plugin RedHatPluginc@s,eZdZdZdZdZdZddZddZd S) RhuiContainerz+Red Hat Update Infrastructure in ContainersZrhui_containerized)Z rhui_rhua))/var/lib/rhui/config/rhua/rhui-tools.confc Cs |gd|dd}dD]2}d|dd}|j|d|dd |d q |jd d d d}|jd|ddd|jd|ddd}|ddkr|d}t|d}t|d}|j|ddd|j|ddddD]} |j|d| dddqdS)N)rz7/var/lib/rhui/config/rhua/registered_subscriptions.confz/var/lib/rhui/pki/*z/var/lib/rhui/cache/*z/var/lib/rhui/root/.rhui/*z/var/lib/rhui/log/*z/var/lib/rhui/pki/**/*.keyz4podman exec rhui5-rhua rhui-manager --noninteractive)statusz cert infoz rhui-manager_ _Zrhuiz /var/lib/rhui)runasZrunatZsuggest_filenamez/var/lib/rhui/remote_shareT) recursivez/var/lib/pgsqlzdu -sh z rhui5-rhua) containerr zpodman exec rhui5-rhua find z/data)r rroutputz*.logz*.conf)Z PG_VERSIONzpostmaster.optsz/data/) Z add_copy_specZadd_forbidden_pathreplaceZadd_cmd_outputZadd_dir_listingZexec_cmd splitlinesfnmatchfilter) selfZ rhui_cont_exeZsubcmdZ suggest_fnameZpghomeZ podman_findZallfilesZlogfilesZconfigsfilerI/usr/lib/python3.9/site-packages/sos/report/plugins/rhui_containerized.pysetups<     zRhuiContainer.setupcCs2|ddddD]}|dd|ddqdS) Nrz(.+_pass(word|):)\s*(.+)z \1 ********)Z csrftokenZ sessionidz(/var/lib/rhui/root/\.rhui/.*/cookies.txt(z \s+)(\S+)z \1********)Zdo_path_regex_sub)rZcookierrrpostprocHs zRhuiContainer.postprocN) __name__ __module__ __qualname__Z short_descZ plugin_nameZservicesfilesrrrrrrrs 1r)rZsos.report.pluginsrrrrrrr s