]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: unify way to get the host address
authorTatjana Dehler <tdehler@suse.com>
Wed, 9 Mar 2022 15:10:49 +0000 (16:10 +0100)
committerTatjana Dehler <tdehler@suse.com>
Mon, 28 Mar 2022 07:54:39 +0000 (09:54 +0200)
commit53db60ee5657fc6a3f3a342199d45e4ffd89ebef
tree63be7dd170d0f76c38e09dce5d0d78100c17c8c5
parentc83f2418e17d2e999695cb00e85951b66d16e606
mgr/cephadm: unify way to get the host address

There are two different ways to get the host address. From the
inventory of the mgr object directly or via the `_inventory_get_addr`
method of `CephadmService`. Update the code in order to use the
`_inventory_get_addr` method only.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
(cherry picked from commit 30385068eed7a4f93179e8d2748dd6e01bba6ffd)
src/pybind/mgr/cephadm/services/monitoring.py