
    ~ g                     4    S SK r S SKJrJr   " S S\\5      rg)    N)PluginUbuntuPluginc                   4    \ rS rSrSrSrSrSrSrS r	S r
S	rg
)	Landscape   zUbuntu Landscape client	landscape)sysmgmt)/etc/landscape/client.conf/etc/landscape/service.conf)zlandscape-clientzlandscape-serverc                    S Vs/ s H  o[         R                  ;   PM     nn[        U5      (       d  U R                  R	                  S5        O&U R                  / SQ5        U R                  / SQ5        U R                  / SQ5        U R                  S5      (       d  U R                  SS/5        OU R                  S	S
/5        U R                  / SQ5        g s  snf )N)LANDSCAPE_API_KEYLANDSCAPE_API_SECRETLANDSCAPE_API_URIzNot 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.)zlandscape-api get-distributionszlandscape-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-serverr
   r   z/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)osenvironallsoslogwarningadd_cmd_outputadd_copy_spec
get_option)selfpvars_alls      >/usr/lib/python3/dist-packages/sos/report/plugins/landscape.pysetupLandscape.setup   s    .  .O .  8}}KK !8 9  !   !  	 
 	 z***1  
 $+  
 	 
 	]s   Cc                 ~    U R                  SSS5        / SQnU R                  SSSR                  U5       S3S	5        g )
Nr
   zregistration_password(.*)zregistration_password[********])passwordstore_passwordzsecret-tokenzoidc-client-secretzoidc-client-idz/etc/landscape/service.conf*(|z) = (.*)z\1 = [********])do_file_subdo_path_regex_subjoin)r   keyss     r   postprocLandscape.postprocL   sK    ((.	


 	*$ )	
     N)__name__
__module____qualname____firstlineno__
short_descplugin_nameprofilesfilespackagesr   r(   __static_attributes__r+   r*   r   r   r      s&    *JKHIE7H4l
r*   r   )r   sos.report.pluginsr   r   r   r+   r*   r   <module>r7      s    
 3P
 P
r*   