From 8f64fc61e7ef4c62fb47efbc9b3e35098b98fda3 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sat, 8 Jan 2022 11:40:56 +0300 Subject: [PATCH] Ignore empty events in mon --- mon/mon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mon/mon.js b/mon/mon.js index 68b1b5d8..efdba7c0 100644 --- a/mon/mon.js +++ b/mon/mon.js @@ -590,7 +590,7 @@ class Mon console.log('Revision '+data.result.header.revision+' events: '); } this.etcd_watch_revision = BigInt(data.result.header.revision)+BigInt(1); - for (const e of data.result.events) + for (const e of data.result.events||[]) { this.parse_kv(e.kv); const key = e.kv.key.substr(this.etcd_prefix.length);