[pve-devel] [PATCH manager] fix missing mons array in ceph status output

Dominik Csapak d.csapak at proxmox.com
Wed Nov 23 09:20:42 CET 2016


on setups with 1 monitor, timechecks has no monitor array

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/ceph/StatusDetail.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/ceph/StatusDetail.js b/www/manager6/ceph/StatusDetail.js
index 16e6e08..0c8881c 100644
--- a/www/manager6/ceph/StatusDetail.js
+++ b/www/manager6/ceph/StatusDetail.js
@@ -158,7 +158,7 @@ Ext.define('PVE.ceph.StatusDetail', {
 	    return (a.name < b.name)?-1:(a.name > b.name)?1:0;
 	});
 
-	var monTimes = record.data.health.timechecks.mons;
+	var monTimes = record.data.health.timechecks.mons || [];
 	var timechecks = {};
 	var monContainer = me.getComponent('monitors');
 	var i;
-- 
2.1.4





More information about the pve-devel mailing list