]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Wed, 18 Feb 2026 08:52:38 +0000 (09:52 +0100)
commit6566399b73c74e26f5f7cf161bc2cbb0e1da2840
treef89428bb3b5b187bec14f9b3bb0bccb7778c8e2b
parent97d2d0fe756a1fa43253199d8ca30f6ffa4a39cd
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