Switch the custom container 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 <jmulligan@redhat.com>
def container(self, ctx: CephadmContext) -> CephContainer:
if self._container is None:
- ctr = get_container(
+ ctr = daemon_to_container(
ctx,
- self.identity,
+ self,
+ host_network=False,
privileged=self.privileged,
ptrace=ctx.allow_ptrace,
)