From 42e3d217ffcd30f9ea7fd06684468fb87739cf97 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 12 Feb 2024 14:25:24 +0000 Subject: [PATCH] node-proxy: call time.sleep() after each reporter iteration This makes sure time.sleep() is always call in the reporter loop. Signed-off-by: Guillaume Abrioux --- src/ceph-node-proxy/ceph_node_proxy/reporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-node-proxy/ceph_node_proxy/reporter.py b/src/ceph-node-proxy/ceph_node_proxy/reporter.py index 4e9c4e2798b..20d43b59d33 100644 --- a/src/ceph-node-proxy/ceph_node_proxy/reporter.py +++ b/src/ceph-node-proxy/ceph_node_proxy/reporter.py @@ -63,7 +63,7 @@ class Reporter(BaseThread): self.system.previous_data = self.system.get_system() else: self.log.debug('no diff, not sending data to the mgr.') - time.sleep(5) self.log.debug('lock released in reporter loop.') + time.sleep(5) self.log.debug('exiting reporter loop.') raise SystemExit(0) -- 2.39.5