Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/juju.cpython-36.pyc

3

�f�	�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�UbuntuPluginc@s,eZdZdZdZdZdZdd�Zdd	�Zd
S)
�JujuzJuju orchestration toolZjuju�virt�sysmgmt�
/var/log/jujucCstx&|jd�D]}|j|�|j|�qW|jd�|jddg�|jd�rf|jdddg�|jd	�n
|jd
�dS)Nzjuju*z!/var/lib/juju/agents/*/agent.confzls -alRh /var/log/juju*zls -alRh /var/lib/juju*Zall_logsz
/var/log/jujuz
/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)�selfZservice�r	�/usr/lib/python3.6/juju.py�setups


z
Juju.setupcCs>d}ddddg}ddj|�}d}|j|||�|j|�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_regexr	r	r
�postproc8sz
Juju.postprocN)rr)r)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofiles�filesrrr	r	r	r
rsrN)Zsos.report.pluginsrrrr	r	r	r
�<module>s

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists