]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Wed, 8 Apr 2020 10:40:12 +0000 (12:40 +0200)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/cephadm/module.py

index 488f2893dc7e6bd54f115725d0ac3ee50cec75f2..a796a260301ae67d04c6f49c5d11bc829c1b0daa 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]]