+
    Û1jè  ã                   ó:   € ^ RI t ^ RIHtHtHt  ! R R]]4      tR# )é    N)ÚPluginÚDebianPluginÚ	PluginOptc                   óT   a € ] tR t^t o RtRtRtRt]! RRRR7      .t	R t
R	 tR
tV tR# )ÚProxmoxz¼
This plugin will capture information about the system's
Proxmox Virtualization Environment.

It will collect information about the cluster, nodes, pools and
storage from the Proxmox API.
zProxmox cluster informationÚproxmoxúoutput-formatsz@List of output formats to use for the commands separated by ":".Útext)ÚdescÚdefaultc                ó,  € V P                  R 4      P                  R4      p. R	Op. pV F#  pVP                  V P                  V4      4       K%  	  T P	                  V UUu. uF   pV F  pRT RVR8X  d   RMR RV 2NK  	  K"  	  upp4       R# u uppi )
r	   Ú:z
pvesh get Ú r
   z
--noborderÚ z --output-format N)zcluster/resourceszcluster/config/nodeszcluster/optionsznodes/:id/statusznodes/:id/storageznodes/:id/networkÚpoolsÚstoragezstorage/:sidzcluster/ceph/statuszcluster/ceph/metadatazcluster/ceph/flags)Ú
get_optionÚsplitÚextendÚbuild_cmd_pathsÚadd_cmd_output)ÚselfÚoutput_formatsÚcommandsÚ	cmd_pathsÚcommandÚcmdÚformats   &      Ú</usr/lib/python3/dist-packages/sos/report/plugins/proxmox.pyÚsetupÚProxmox.setup$   s´   € ØŸ™Ð)9Ó:×@Ñ@ÀÓEˆò
ˆð ˆ	ãˆGØ×Ñ˜T×1Ñ1°'Ó:Ö;ñ  ð 	×Ññ !ô
ñ !�Û(�ð ˜˜˜Q¨v¸Ô/?™|ÀRÐHð IØ%˜hó(ñ )ñ(á ò
ö 	ùó 
s   Á &B
c           
     óü  € VP                  R4      p. p\        R \        V4       4       R4      pVe©   RP                  VRV 4      pRP                  W$^,           R 4      pV P	                  RV R24      pVR,          ^ 8X  dV   \
        P                  ! VR,          4      pV F2  p	VP                  V P                  V RV	R,           RV 24      4       K4  	  V# VP                  RP                  V4      4       V# )	z¨
Build command paths,
replacing dynamic attributes with data from the API

:param base_path: The base path to build from
:type base_path: str

:return: A list of paths
Ú/c              3   ó\   "  € T F"  w  rVP                  R 4      '       g   K  Vx € K$  	  R# 5i)r   N)Ú
startswith)Ú.0ÚiÚparts   &  r   Ú	<genexpr>Ú*Proxmox.build_cmd_paths.<locals>.<genexpr>O   s'   é € ð 2Ñ*:™w˜qØ ŸO™O¨C×0÷ šÓ*:ùs   ‚,¢
,Nz	pvesh ls z --output-format jsonÚstatusÚoutputÚname)
r   ÚnextÚ	enumerateÚjoinÚexec_cmdÚjsonÚloadsr   r   Úappend)
r   Ú	base_pathÚpartsÚpathsÚid_indexÚpathÚtrailing_pathÚresultsÚchildrenÚchilds
   &&        r   r   ÚProxmox.build_cmd_pathsB   sÿ   € ð —‘ Ó$ˆØˆäñ 2¬)°EÔ*:ó 2Ø37ó9ˆð ÒØ—8‘8˜E ) 8Ð,Ó-ˆDØŸH™H U°a­<¨=Ð%9Ó:ˆMà—m‘m i°¨vÐ5JÐ$KÓLˆGà�xÕ  AÔ%ÜŸ:š: g¨hÕ&7Ó8�Û%�EØ—L‘LØ×,Ñ,Ø#˜f A e¨F¥m _°A°m°_ÐEóöñ &ð ˆð �L‰L˜Ÿ™ %›Ô)Øˆó    © N)z
proxmox-ve)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú
short_descÚplugin_nameÚpackagesr   Úoption_listr    r   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      sF   ø‡ € ñð /€Jà€KØ€Hñ 	Ð"ð<à ô	ð€Kò÷<!ð !r?   r   )r2   Úsos.report.pluginsr   r   r   r   r@   r?   r   Ú<module>rN      s    ðó ç >Ñ >ôTˆf�lö Tr?   