]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: convert get_container_binds to use class based approach
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 20 Oct 2023 18:22:40 +0000 (14:22 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 9 Nov 2023 19:50:46 +0000 (14:50 -0500)
commitf04c4b6c6f2b047260a003f5b47cb6b81a998d93
tree616749a7f098a1e623c6f11cb1a17d6d5a77b6e1
parent451305dc8d2719628e402f06750480165e82f751
cephadm: convert get_container_binds to use class based approach

Since all types affected by get_container_binds now have the common
customize_container_binds, use a generic class-based approach by
creating an instance of ContainerDaemonForm and calling the method.
All other classes have a customize_container_binds that is a no-op.

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