+
    i  c                   s6    ^ RI t ^ RIHtHt  ! R R]]4      tR# )i    N)PluginUbuntuPluginc                   s@   a  ] tR t^t o RtRtRtRtR	tR t	R t
RtV tR# )
	LandscapezUbuntu Landscape clientZ	landscapec                s   R Uu. uF  q\         P                  9   NK  	  pp\        V4      '       g   V P                  P	                  R4       M&V P                  . R	O4       V P                  . R
O4       V P                  . RO4       V P                  R4      '       g   V P                  RR.4       MV P                  RR.4       V P                  . RO4       R# u upi )LANDSCAPE_API_KEYzNot 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all_logsz/var/log/landscape/*.logz/var/log/landscape-server/*.logz/var/log/landscapez/var/log/landscape-serverN)r   ZLANDSCAPE_API_SECRETZLANDSCAPE_API_URI)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-server/etc/landscape/client.conf/etc/landscape/service.confz/etc/landscape/service.conf.oldz*/var/lib/landscape/landscape-oops/*/OOPS-*)z'gpg --verify /etc/landscape/license.txtz$head -n 5 /etc/landscape/license.txtzlsctl status)osZenvironZallZsoslogZwarningZadd_cmd_outputZadd_copy_specZ
get_option)selfZpZvars_alls   &  A/usr/lib/python3.14/site-packages/sos/report/plugins/landscape.pysetupZLandscape.setup   s    .  .O .  8}}KK !8 9  !   !  	 
 	 z***1  
 $+  
 	 
 	]s   Cc                s    V P                  R RR4       . R	OpV P                  RRRP                  V4       R2R4       R# )
r   zregistration_password(.*)zregistration_password[********]z/etc/landscape/service.conf*Z(Z|z) = (.*)z\1 = [********]N)ZpasswordZstore_passwordzsecret-tokenzoidc-client-secretzoidc-client-id)Zdo_file_subZdo_path_regex_subZjoin)r   Zkeyss   & r   postprocZLandscape.postprocL   sK    ((.	


 	*$ )	
     N)Zsysmgmt)r   r   )zlandscape-clientzlandscape-server)Z__name__Z
__module__Z__qualname__Z__firstlineno__Z
short_descZplugin_nameZprofilesZfilesZpackagesr	   r
   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s.     *JKHIE7H4l
 
r   r   )r   Zsos.report.pluginsr    r   r   r   r   r   <module>r      s    
 3P
 P
r   