]> 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 16:40:11 +0000 (17:40 +0100)
commitf27cca16c2e491e714f7022f29e6fe2e5cfa8bdc
treeccc41297d4aa26c0fca81c254d6c1ab8b0cd1bd6
parent85d6619581e5d2a256656c957f5ce1ed9a503ed5
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