]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: use CustomContainer.create classmethod like most other blocks
authorJohn Mulligan <jmulligan@redhat.com>
Sun, 5 Nov 2023 18:07:10 +0000 (13:07 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 17 Nov 2023 13:10:11 +0000 (08:10 -0500)
Use the CustomContainer.create classmethod like most other blocks of
code in the get_container function.

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

index 348f581f9e6167fabba19929a4310a9d9934439f..5238e33e9c50065fd0dfaa7dba8e0afff8ebe170 100755 (executable)
@@ -3036,7 +3036,7 @@ def get_container(
         binds = get_container_binds(ctx, ident)
         mounts = get_container_mounts(ctx, ident)
     elif daemon_type == CustomContainer.daemon_type:
-        cc = CustomContainer.init(ctx, ident.fsid, ident.daemon_id)
+        cc = CustomContainer.create(ctx, ident)
         entrypoint = cc.default_entrypoint()
         host_network = False
         cc.customize_container_envs(ctx, envs)