From: Sebastian Wagner Date: Mon, 15 Jun 2020 16:11:09 +0000 (+0200) Subject: mgr/cephadm: add type hints for _refresh_host_*() X-Git-Tag: v16.1.0~1885^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c37412deb0598a5985da8097d6891d4516601c10;p=ceph.git mgr/cephadm: add type hints for _refresh_host_*() Signed-off-by: Sebastian Wagner --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 5675912f1626..4c7d1a071308 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1120,7 +1120,7 @@ you may want to run: self.log.debug(f'Refreshed OSDSpec previews for host <{host}>') return True - def _refresh_hosts_and_daemons(self): + def _refresh_hosts_and_daemons(self) -> None: bad_hosts = [] failures = [] @@ -1175,7 +1175,7 @@ you may want to run: if health_changed: self.set_health_checks(self.health_checks) - def _refresh_host_daemons(self, host): + def _refresh_host_daemons(self, host) -> Optional[str]: try: out, err, code = self._run_cephadm( host, 'mon', 'ls', [], no_fsid=True) @@ -1228,7 +1228,7 @@ you may want to run: self.cache.save_host(host) return None - def _refresh_host_devices(self, host): + def _refresh_host_devices(self, host) -> Optional[str]: try: out, err, code = self._run_cephadm( host, 'osd',