https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/landscape.cpython-310.pyc
o

-�_g��@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�UbuntuPluginc@s0eZdZdZdZdZdZdZdd�Zdd	�Z	d
S)�	LandscapezUbuntu Landscape client�	landscape)�sysmgmt)�/etc/landscape/client.conf�/etc/landscape/service.conf)zlandscape-clientzlandscape-servercCs�dd�dD�}t|�s|j�d�n|�gd��|�gd��|�gd��|�d�s4|�d	d
g�n|�ddg�|�gd
��dS)NcSsg|]}|tjv�qS�)�os�environ)�.0�pr	r	�>/usr/lib/python3/dist-packages/sos/report/plugins/landscape.py�
<listcomp>sz#Landscape.setup.<locals>.<listcomp>)�LANDSCAPE_API_KEY�LANDSCAPE_API_SECRET�LANDSCAPE_API_URIz�Not all environment variables set. Source the environment file for the user intended to connect to the Landscape environment so that the landscape-api commands can be used.)zlandscape-api get-distributionszlandscape-api get-apt-sourcesz%landscape-api get-repository-profilesz'landscape-api get activites --limit 100)z&landscape-api --json get-distributionsz$landscape-api --json get-apt-sourcesz,landscape-api --json get-repository-profilesz.landscape-api --json get activites --limit 100)z/etc/default/landscape-clientz/etc/default/landscape-serverrrz/etc/landscape/service.conf.oldz*/var/lib/landscape/landscape-oops/*/OOPS-*�all_logsz/var/log/landscape/*.logz/var/log/landscape-server/*.logz/var/log/landscapez/var/log/landscape-server)z'gpg --verify /etc/landscape/license.txtz$head -n 5 /etc/landscape/license.txtzlsctl status)�all�soslog�warning�add_cmd_output�
add_copy_spec�
get_option)�self�vars_allr	r	r�setups 
	��zLandscape.setupcCs6|�ddd�gd�}|�ddd�|��d�d	�dS)
Nrzregistration_password(.*)zregistration_password[********])�password�store_passwordzsecret-tokenzoidc-client-secretzoidc-client-idz/etc/landscape/service.conf*�(�|z) = (.*)z\1 = [********])�do_file_sub�do_path_regex_sub�join)r�keysr	r	r�postprocLs��zLandscape.postprocN)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�files�packagesrr%r	r	r	rr
s6r)r
�sos.report.pluginsrrrr	r	r	r�<module>s

https://t.me/RX1948 - 2025