%PDF- %PDF-
Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/juju.cpython-312.pyc |
� i��d� � �, � d dl mZmZ G d� dee� Zy)� )�Plugin�UbuntuPluginc �( � e Zd ZdZdZdZdZd� Zd� Zy)�JujuzJuju orchestration tool�juju)�virt�sysmgmt)� /var/log/jujuc �J � | j d� D ]$ }| j |� | j |� �& | j d� | j ddg� | j d� r%| j g d�� | j d� y | j d� y ) Nzjuju*z!/var/lib/juju/agents/*/agent.confzls -alRh /var/log/juju*zls -alRh /var/lib/juju*�all_logs)r z /var/lib/jujuz/var/lib/juju/**/.*z/var/lib/juju/kvmz/var/log/juju/*.log)�get_service_names�add_journal�add_service_status� add_copy_spec�add_cmd_output� get_option�add_forbidden_path)�self�services �9/usr/lib/python3/dist-packages/sos/report/plugins/juju.py�setupz Juju.setup s� � � �-�-�g�6� -�G����W�%��#�#�G�,� -� ���>�?� ���%�%� � � �?�?�:�&� ��� � � �#�#�$7�8� ���4�5� c � � d}g d�}ddj |� z }d}| j |||� | j |� y )Nz/var/lib/juju/agents/*)�sharedsecret�apipassword�oldpassword� statepasswordz(^\s*(%s)\s*:\s*)(.*)�|z\1*********)�join�do_path_regex_sub�do_file_private_sub)r �agents_path�protect_keys� keys_regex� sub_regexs r �postprocz Juju.postproc8 sH � �.�� �� .�����0F�F� �"� ����{�J� �B�� � ��-r N) �__name__� __module__�__qualname__� short_desc�plugin_name�profiles�filesr r&