HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/juju.cpython-38.pyc
U

i��d�	�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�UbuntuPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�JujuzJuju orchestration toolZjuju)ZvirtZsysmgmt)�
/var/log/jujucCsp|�d�D]}|�|�|�|�q
|�d�|�ddg�|�d�rb|�dddg�|�d	�n
|�d
�dS)Nzjuju*z!/var/lib/juju/agents/*/agent.confzls -alRh /var/log/juju*zls -alRh /var/lib/juju*Zall_logsrz
/var/lib/jujuz/var/lib/juju/**/.*z/var/lib/juju/kvmz/var/log/juju/*.log)Zget_service_namesZadd_journalZadd_service_statusZ
add_copy_specZadd_cmd_outputZ
get_optionZadd_forbidden_path)�self�service�r�9/usr/lib/python3/dist-packages/sos/report/plugins/juju.py�setups 

�
�z
Juju.setupcCs>d}ddddg}dd�|�}d}|�|||�|�|�dS)	Nz/var/lib/juju/agents/*ZsharedsecretZapipasswordZoldpasswordZ
statepasswordz(^\s*(%s)\s*:\s*)(.*)�|z\1*********)�joinZdo_path_regex_subZdo_file_private_sub)rZagents_pathZprotect_keysZ
keys_regexZ	sub_regexrrr	�postproc8s�z
Juju.postprocN)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofiles�filesr
r
rrrr	rsrN)Zsos.report.pluginsrrrrrrr	�<module>s