]> 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>
Tue, 10 Feb 2026 15:33:45 +0000 (16:33 +0100)
commite4412e17da4f8663dca4cd87e4abcfdf141db453
tree08df3e046a0cfcc7bd2d524392c38fe9c9e6fbfe
parent7debf08d5d51e761b5bff48e8dde106da0eff22e
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