From: John Mulligan Date: Sun, 5 Nov 2023 18:07:10 +0000 (-0500) Subject: cephadm: use CustomContainer.create classmethod like most other blocks X-Git-Tag: v19.0.0~24^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b58369e916cfa5067a6aa6cb7783728a0a8a425c;p=ceph.git cephadm: use CustomContainer.create classmethod like most other blocks Use the CustomContainer.create classmethod like most other blocks of code in the get_container function. Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 348f581f9e61..5238e33e9c50 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -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)