| Current Path : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
| Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/landscape.cpython-38.pyc |
U
-�_g� � @ s. d dl Z d dlmZmZ G dd� dee�ZdS )� N)�Plugin�UbuntuPluginc @ s0 e Zd ZdZdZdZdZdZdd� Zdd � Z d
S )� LandscapezUbuntu Landscape clientZ landscape)Zsysmgmt)�/etc/landscape/client.conf�/etc/landscape/service.conf)zlandscape-clientzlandscape-serverc C s� dd� dD �}t |�s$| j�d� n$| �ddddg� | �d d
ddg� | �d
dddddg� | �d�sx| �ddg� n| �ddg� | �dddg� d S )Nc S s g | ]}|t jk�qS � )�os�environ)�.0�pr r �>/usr/lib/python3/dist-packages/sos/report/plugins/landscape.py�
<listcomp> s 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 100z&landscape-api --json get-distributionsz$landscape-api --json get-apt-sourcesz,landscape-api --json get-repository-profilesz.landscape-api --json get activites --limit 100z/etc/default/landscape-clientz/etc/default/landscape-serverr r z/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-serverz'gpg --verify /etc/landscape/license.txtz$head -n 5 /etc/landscape/license.txtzlsctl status)�allZsoslogZwarningZadd_cmd_outputZ
add_copy_specZ
get_option)�selfZvars_allr r r �setup sJ ���
���zLandscape.setupc C s<