You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the pve version information for each pve node to the result of proxmox_node_info.
Issue Type
Feature Idea
Component Name
proxmox_node_info
Additional Information
I would like to get the pve version information added to the information the proxmox_node_info module is generating. I haven't found this information anywhere else in the available proxmox modules.
With this information at hand, it will be possible to check, that all nodes in a cluster are running the same version or that all PVE systems are running specific versions.
As far as my coding skills are concerned, this should easily be achieveable in get_nodes() via self.proxmox_api.nodes(<node>).version.get() for each node and adding this straight as is to the nodes[<node>] dict as version. Might need some failsaves, but this is what I came up with:
def get_nodes(self):
nodes = self.proxmox_api.nodes.get()
for node in nodes:
node['version'] = self.proxmox_api.nodes(node['node']).version.get()
return nodes
This was tested locally and results in the following (shortened), including version information:
Summary
Add the pve version information for each pve node to the result of proxmox_node_info.
Issue Type
Feature Idea
Component Name
proxmox_node_info
Additional Information
I would like to get the pve version information added to the information the
proxmox_node_info
module is generating. I haven't found this information anywhere else in the available proxmox modules.With this information at hand, it will be possible to check, that all nodes in a cluster are running the same version or that all PVE systems are running specific versions.
As far as my coding skills are concerned, this should easily be achieveable in
get_nodes()
viaself.proxmox_api.nodes(<node>).version.get()
for each node and adding this straight as is to thenodes[<node>]
dict asversion
. Might need some failsaves, but this is what I came up with:This was tested locally and results in the following (shortened), including version information:
Code of Conduct
The text was updated successfully, but these errors were encountered: