Switch the ceph exporter 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>
raise Error(f'Directory does not exist. Got: {self.sock_dir}')
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]: