From: John Mulligan Date: Sun, 5 Nov 2023 20:18:49 +0000 (-0500) Subject: cephadm: switch tracing class to use daemon_to_container function X-Git-Tag: v19.0.0~24^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=de2547dd26098de862a9e9b08893cd2bb43df191;p=ceph.git cephadm: switch tracing class to use daemon_to_container function Switch the tracing daemon type class to call daemon_to_container instead of get_container in the class's container method. This breaks a dependency loop between the class and the get_container function hopefully enabling future clean ups and code moves. Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index fddb63e4a90..c5ea9c5bbe0 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -1964,7 +1964,7 @@ class Tracing(ContainerDaemonForm): return self._identity def container(self, ctx: CephadmContext) -> CephContainer: - ctr = get_container(ctx, self.identity) + ctr = daemon_to_container(ctx, self) return to_deployment_container(ctx, ctr) def uid_gid(self, ctx: CephadmContext) -> Tuple[int, int]: