From: Paul Cuzner Date: Thu, 18 Feb 2021 23:41:12 +0000 (+1300) Subject: mgr/cephadm:fix mypy warning X-Git-Tag: v16.2.0~106^2~79 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c3f255300c69a8839cef9db4f877f76d63f31c0a;p=ceph.git mgr/cephadm:fix mypy warning Since switching how the roles for a host are determining the type hint was missed..this patch addresses that Signed-off-by: Paul Cuzner (cherry picked from commit 83f531239b8d2e148bfae2eba6f1effab359b4b8) --- diff --git a/src/pybind/mgr/cephadm/configchecks.py b/src/pybind/mgr/cephadm/configchecks.py index 3294e634428d..0d855b10000c 100644 --- a/src/pybind/mgr/cephadm/configchecks.py +++ b/src/pybind/mgr/cephadm/configchecks.py @@ -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] = []