]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/ceph/OSD.js
fix #2340: gui: ceph: handle 'null' versions for hosts
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 22 Aug 2019 10:26:09 +0000 (12:26 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Aug 2019 12:09:20 +0000 (14:09 +0200)
commit9b8036705743dd0b37c519f1605125ef566d2d67
treecd508b58be3e0ac540057b80dd5f337d3d2e5196
parente30cddd254fe4e3759adafb78db2297ea60909e2
fix #2340: gui: ceph: handle 'null' versions for hosts

the api returns 'null' for a host that is in the crushmap, but
without actual version information, so just check for falsyness instead
of 'undefined', else we run later into javascript exceptions and no
content on the osd page

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