]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: refactor get_container_info to use new listing apis
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 11 Feb 2025 19:37:26 +0000 (14:37 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 11 Feb 2025 21:08:05 +0000 (16:08 -0500)
commit361c69d431c9c5bdeba3b70d4a6e2faac02b48bc
tree165e8cc5eaf90ad7ada791e9dddef73bae988752
parent37269aeea27f24325b119dc9a8522e5af0637433
cephadm: refactor get_container_info to use new listing apis

Thoroughly refactor the get_container_info function so that it
uses the new listing functions and updaters with the aim to avoid
redundant operations that can waste resources.

A fairly heavy rework of the tests was needed too.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py
src/cephadm/tests/test_cephadm.py