]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
node-proxy: encapsulate send logic in dedicated method
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 5 Feb 2026 09:01:06 +0000 (10:01 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 5 Feb 2026 09:09:20 +0000 (10:09 +0100)
commite3a42a33d9e2d9c622957d3389cf7cd551eac4d9
treec1843e153206019ae29a99f2e2647f27e5119b3f
parent8ea50c62a4b8ebfd359f3599597aa9cf780e9b1e
node-proxy: encapsulate send logic in dedicated method

Move the "send data to mgr when inventory changed" logic from main()
into a dedicated method _try_send_update().
This flattens the reporter loop and keeps main() to a single call under
the lock.

Fixes: https://tracker.ceph.com/issues/74749
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-node-proxy/ceph_node_proxy/reporter.py