%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/landscape.cpython-39.opt-1.pyc

a

\��h��@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�UbuntuPluginc@s0eZdZdZdZdZdZdZdd�Zdd	�Z	d
S)�	LandscapezUbuntu Landscape clientZ	landscape)Zsysmgmt)�/etc/landscape/client.conf�/etc/landscape/service.conf)zlandscape-clientzlandscape-servercCs�dd�dD�}t|�s$|j�d�n|�gd��|�gd��|�gd��|�d�sh|�d	d
g�n|�ddg�|�gd
��dS)NcSsg|]}|tjv�qS�)�os�environ)�.0�prr�@/usr/lib/python3.9/site-packages/sos/report/plugins/landscape.py�
<listcomp>�z#Landscape.setup.<locals>.<listcomp>)ZLANDSCAPE_API_KEYZLANDSCAPE_API_SECRETZLANDSCAPE_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-*Zall_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)�allZsoslogZwarningZadd_cmd_outputZ
add_copy_specZ
get_option)�selfZvars_allrrr�setups 	
��zLandscape.setupcCs6|�ddd�gd�}|�ddd�|��d�d	�dS)
Nrzregistration_password(.*)zregistration_password[********])�passwordZstore_passwordzsecret-tokenzoidc-client-secretzoidc-client-idz/etc/landscape/service.conf*�(�|z) = (.*)z\1 = [********])Zdo_file_subZdo_path_regex_sub�join)r�keysrrr�postprocLs��zLandscape.postprocN)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofiles�filesZpackagesrrrrrrr
s6r)rZsos.report.pluginsrrrrrrr�<module>	s

Zerion Mini Shell 1.0