+
    i  c                   s8    ^ RI HtHtHtHt  ! R R]]]4      tR# )i    )PluginRedHatPluginUbuntuPlugin	PluginOptc                   s   a  ] tR t^t o RtRtRtRtRt]	! RRRRR7      ]	! R	RR
RR7      ]	! RRRR7      .t
R tR tRtV tR# )Podmana  Podman is a daemonless container management engine, and this plugin is
meant to provide diagnostic information for both the engine and the
containers that podman is managing.

General status information will be collected from podman commands, while
detailed inspections of certain components will provide more insight
into specific container problems. This detailed inspection is provided for
containers, images, networks, and volumes. Per-entity inspections will be
recorded in subdirs within sos_commands/podman/ for each of those types.
zPodman containerspodmanallFz0collect for all containers, even terminated oneszEnable collection for all containers that exist on the system regardless of their running state. This may cause a significant increase in sos archive size, especially when combined with the 'logs' option.)defaultdescZ	long_desclogsz)collect stdout/stderr logs for containerszCapture 'podman logs' output for discovered containers. This may be useful or not depending on how/if the container produces stdout/stderr output. Use cautiously when also using the 'all' option.sizez!collect image sizes for podman ps)r   r   c                sl   V P                  R RRR/4       . R*OpT P                  V Uu. uF  pRV 2NK
  	  up4       V P                  R4      '       d   V P                  R^dR7       V P                  R	R
.RR7       V P	                  RRR7      pVR,          ^ 8X  di   VR,          P                  4       R,           Uu. uF  qDP                  4       ^ ,          NK  	  ppT P                  V Uu. uF  pRV 2NK
  	  upRRR7       V P                  RV P                  R4      R7       Uu. uF  qw^ ,          NK  	  ppV P                  RR7      p	V P                  RR7      p
V F  pV P                  RV 2RRR7       K  	  V	 F@  pVw  rRV9  d   TMTpV P                  RV 2RRR7       V P                  R V 2R!R"R7       KB  	  V
 F  pV P                  R#V 2R$R%R7       K  	  V P                  R&4      '       d#   V F  pV P                  R'V 2R^2R(7       K  	  R)# R)# u upi u upi u upi u upi )+zpodman imagesZpodman_list_imagesz	podman psZpodman_list_containersimageszpodman r
   zpodman ps -as)priorityz/etc/cniz/etc/containersT)Z	recursivezpodman network lsZpodman_list_networks)tagsZstatusZoutput:i   NNzpodman network inspect ZnetworksZpodman_network_inspect)subdirr   r   r   )runtimeZget_all)r   zpodman inspect 
containersZpodman_container_inspectZnoneZpodman_image_inspectzpodman image tree zimages/treeZpodman_image_treezpodman volume inspect volumesZpodman_volume_inspectr	   zpodman logs -t )r   r   N)Zinfozimage trust showr   zimages --digestszpod psz
port --allZpszps -azstats --no-stream --allZversionz	volume lszsystem df -v)
Zadd_cmd_tagsZadd_cmd_outputZ
get_optionZadd_dir_listingZcollect_cmd_outputZ
splitlinesZsplitZget_containersZget_container_imagesZget_container_volumes)selfZsubcmdsZsZpnetsZpnZnetsZnetZcr   r   r   	containerZimgZnameZimg_idZinspZvolZcons   &                 >/usr/lib/python3.14/site-packages/sos/report/plugins/podman.pysetupZPodman.setup2   s   11
 	

 	G<Gqwqc]G<= ??6""#>
  	 	
 ''(;-C ( E?a,1(O,F,F,H,LM,LbHHJqMM,LDM;?!;?C)#/4! '?   A
 --h6:ooe6L . N
NQaDD N 	 
 **8*<,,X,>#I/) ='3%?   A $
 CLD!-46D/$ 8%;   =$TF+$(     C"8 >'0%<   > 
 ??6""!##ocU$;+7" $ F " #_ = N!
s   H">H'.H,*H1c                s0    R pV P                  RVR4       R# )z=(?P<var>(pass|key|secret|PASS|KEY|SECRET).*?)=(?P<value>.*?)"z	*inspect*z\g<var>=********"N)Zdo_cmd_output_sub)r   Z
env_regexps   & r   postprocZPodman.postproc{   s    (
{J3	5     N)r   )r   )Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__Z
short_descZplugin_nameZprofilesZpackagesr   Zoption_listr   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      sw     	 %JKHH 	%I>	@ 	&%B:	< 	&%:	<K&GFR5 5r   r   N)Zsos.report.pluginsr    r   r   r   r   r   r   r   <module>r      s     M L|5V\< |5r   