]> git.proxmox.com Git - pve-manager.git/commit
ui: ceph: add more compatibilty code for versions
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 12 Nov 2021 16:01:04 +0000 (17:01 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 12 Nov 2021 16:02:27 +0000 (17:02 +0100)
commit30a6ce73f4abda12cfb69ff4ffe452491a67cf87
tree8e84a9888ae6a468581d700ff48e542dadbaed0a
parent4048af343fa8685fce30058cd9eca17f78aa8c41
ui: ceph: add more compatibilty code for versions

we now have to handle the version of 'old' nodes, as well as the
new nodes, which are missing the 'version' field in the metadata/osd call

so set the 'versions' object to a default empty object for osds
and get the host version directly from the treenode
(the parent node of the osd node)

also compare the host version in the dashboard by getting first the
new version field, and the old one as fallback.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/ceph/OSD.js
www/manager6/ceph/Services.js