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: v15.2.5~147^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=abef1541da3965d3680541b9c7fe85d367e53680;p=ceph.git mgr/cephadm: add type hints for _refresh_host_*() Signed-off-by: Sebastian Wagner (cherry picked from commit c37412deb0598a5985da8097d6891d4516601c10) --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index dfd047dfa3c3..8ebeabefef9b 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1100,7 +1100,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 = [] @@ -1155,7 +1155,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) @@ -1208,7 +1208,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',