]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm/binary: add `query_endpoint()` method
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 14 Sep 2023 15:32:38 +0000 (15:32 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 14:43:30 +0000 (14:43 +0000)
commit7544406be33a579b3d0c63ee4c78ae91b02dfb0e
tree34912b8811895025afe0c7cbd6975dc0ae82aaf7
parent08e3d7ff5f70a1c6faafb64d982be6c684cfef06
cephadm/binary: add `query_endpoint()` method

This encapsulates the existing code in a new method
`query_endpoint()`.
The idea is to avoid duplicating code if we need to make multiple
calls to the agent endpoint from the `run()` method.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/cephadm/cephadm.py