[pve-devel] [PATCH manager 1/2] fix #1247: disregard timecheck for one monitor

Dominik Csapak d.csapak at proxmox.com
Tue Jan 10 12:17:12 CET 2017


if we only have one monitor, set the timecheck to HEALTH_OK
(since we get none)

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

diff --git a/www/manager6/ceph/StatusDetail.js b/www/manager6/ceph/StatusDetail.js
index 0c8881c..1d3d3c2 100644
--- a/www/manager6/ceph/StatusDetail.js
+++ b/www/manager6/ceph/StatusDetail.js
@@ -166,6 +166,10 @@ Ext.define('PVE.ceph.StatusDetail', {
 	       timechecks[monTimes[i].name] = monTimes[i].health;
 	}
 
+	if (mons.length === 1) {
+	    timechecks[mons[0].name] = "HEALTH_OK";
+	}
+
 	for (i = 0; i < mons.length; i++) {
 	    var monitor = monContainer.getComponent('mon.' + mons[i].name);
 	    if (!monitor) {
-- 
2.1.4




More information about the pve-devel mailing list