a >hT@s*ddlmZmZmZGdddeeZdS))Plugin RedHatPlugin SoSPredicatec@s,eZdZdZdZdZdZddZddZd S) Rhcz RHC is a client tool and daemon that connects the system to Red Hat hosted services enabling system and subscription management. This plugin captures configuration files and the output of 'rhc status'. z2Red Hat client for remote host configured servicesrhc)rcCs*|ddg|jdt|dgdddS)Nz /etc/rhc/*z/var/log/rhc-worker-playbookz rhc statusZrhsm)Zservices)Zpred)Z add_copy_specZadd_cmd_outputr)selfr:/usr/lib/python3.9/site-packages/sos/report/plugins/rhc.pysetups z Rhc.setupcCs(|dddd}d}|||ddS)Nz&/etc/rhc/workers/foreman_rh_cloud.tomlz%(FORWARDER_PASSWORD\s*=\s*)(.+)(\"\,)z \1********\3z&/var/log/rhc-worker-playbook/ansible/*z9(\s*\"ansible_ssh_host_key_)(.+)(_public\":\s*)(.+)(\,|$)z\1\2\3********\5)Zdo_path_regex_sub)rpathZregexprrr postproc&s  z Rhc.postprocN) __name__ __module__ __qualname____doc__Z short_descZ plugin_nameZpackagesr r rrrr rs  rN)Zsos.report.pluginsrrrrrrrr  s