]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm:fix mypy warning
authorPaul Cuzner <pcuzner@redhat.com>
Thu, 18 Feb 2021 23:41:12 +0000 (12:41 +1300)
committerSage Weil <sage@newdream.net>
Tue, 16 Mar 2021 12:56:17 +0000 (07:56 -0500)
Since switching how the roles for a host are determining the
type hint was missed..this patch addresses that

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
(cherry picked from commit 83f531239b8d2e148bfae2eba6f1effab359b4b8)

src/pybind/mgr/cephadm/configchecks.py

index 3294e634428d27f2157e1985c5803d48c02a22fb..0d855b10000c120bef1ba5ada09e6237e8bd9f9d 100644 (file)
@@ -198,7 +198,7 @@ class CephadmConfigChecks:
             "no": [],
             "unknown": [],
         }
-        self.host_to_role: Dict[str, List[Optional[str]]] = {}
+        self.host_to_role: Dict[str, List[str]] = {}
         self.kernel_to_hosts: Dict[str, List[str]] = {}
 
         self.public_network_list: List[str] = []