From 83f531239b8d2e148bfae2eba6f1effab359b4b8 Mon Sep 17 00:00:00 2001 From: Paul Cuzner Date: Fri, 19 Feb 2021 12:41:12 +1300 Subject: [PATCH] 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 --- src/pybind/mgr/cephadm/configchecks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] = [] -- 2.47.3