]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: add type hints for _refresh_host_*()
authorSebastian Wagner <sebastian.wagner@suse.com>
Mon, 15 Jun 2020 16:11:09 +0000 (18:11 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 14 Jul 2020 09:39:06 +0000 (11:39 +0200)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit c37412deb0598a5985da8097d6891d4516601c10)

src/pybind/mgr/cephadm/module.py

index dfd047dfa3c398525fdab359fb91e5fff03f54d2..8ebeabefef9b4382c7e562c38bc759859650fdec 100644 (file)
@@ -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',