]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: type annotation for HostCache.mgr
authorSebastian Wagner <sebastian.wagner@suse.com>
Fri, 20 Mar 2020 14:11:08 +0000 (15:11 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 14 Apr 2020 14:50:50 +0000 (16:50 +0200)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit 52e05f8d20a0042c5ba7bc2d30a9dbaf259f8809)

src/pybind/mgr/cephadm/module.py

index 254a96d01ac6e0d8b62a4bf3e51edb978b326fc1..8bdac2fb08b974d0ba57927eb422043c5fd856bc 100644 (file)
@@ -156,7 +156,7 @@ class SpecStore():
 class HostCache():
     def __init__(self, mgr):
         # type: (CephadmOrchestrator) -> None
-        self.mgr = mgr
+        self.mgr: CephadmOrchestrator = mgr
         self.daemons = {}   # type: Dict[str, Dict[str, orchestrator.DaemonDescription]]
         self.last_daemon_update = {}   # type: Dict[str, datetime.datetime]
         self.devices = {}              # type: Dict[str, List[inventory.Device]]