summaryrefslogtreecommitdiffstats
path: root/src/ceph-node-proxy
diff options
context:
space:
mode:
authorGuillaume Abrioux <gabrioux@ibm.com>2024-02-12 15:25:24 +0100
committerGuillaume Abrioux <gabrioux@ibm.com>2024-02-14 10:03:49 +0100
commit42e3d217ffcd30f9ea7fd06684468fb87739cf97 (patch)
tree4ca408477d0a7025e1336e113a9725c549e96c5c /src/ceph-node-proxy
parentnode-proxy: improve http error handling in fetch_oob_details (diff)
downloadceph-42e3d217ffcd30f9ea7fd06684468fb87739cf97.tar.xz
ceph-42e3d217ffcd30f9ea7fd06684468fb87739cf97.zip
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 <gabrioux@ibm.com>
Diffstat (limited to 'src/ceph-node-proxy')
-rw-r--r--src/ceph-node-proxy/ceph_node_proxy/reporter.py2
1 files changed, 1 insertions, 1 deletions
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)