]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: convert calls to get_container_{mounts,binds} to method calls
authorJohn Mulligan <jmulligan@redhat.com>
Sun, 5 Nov 2023 18:22:07 +0000 (13:22 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 17 Nov 2023 13:10:11 +0000 (08:10 -0500)
commitfdce99a6df1961a547733fd60cb29b15c082469c
treec829979f254b5baf3b7ecf852977e917f69f35ae
parent101dbb2f01e220406ef364efaf922fd50301bc1e
cephadm: convert calls to get_container_{mounts,binds} to method calls

In get_container, convert calls to get_container_binds and
get_container_mounts to direct uses of the ContainerDaemonForm customize
methods, avoiding constructing said ContainerDaemonForm subclasses
redundantly.
This is all done in one pass because the _update_podman_mounts function
is called by get_container_mounts and trying to convert each type at a
time would result in extra calls to that function.

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