From: John Mulligan Date: Fri, 17 Nov 2023 19:33:11 +0000 (-0500) Subject: cephadm: add a daemon identity method for getting sidecar script path X-Git-Tag: v19.3.0~284^2~28 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5b6b179d40937032c3d823eb79c10293ae698457;p=ceph.git cephadm: add a daemon identity method for getting sidecar script path Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadmlib/daemon_identity.py b/src/cephadm/cephadmlib/daemon_identity.py index aa47f2815d4..f13473c2a23 100644 --- a/src/cephadm/cephadmlib/daemon_identity.py +++ b/src/cephadm/cephadmlib/daemon_identity.py @@ -153,6 +153,10 @@ class DaemonSubIdentity(DaemonIdentity): category='sidecar', suffix=self.subcomponent, extension='service' ) + def sidecar_script(self, base_data_dir: Union[str, os.PathLike]) -> str: + sname = f'sidecar-{ self.subcomponent }.run' + return str(pathlib.Path(self.data_dir(base_data_dir)) / sname) + @property def legacy_container_name(self) -> str: raise ValueError(