From: John Mulligan Date: Tue, 28 Mar 2023 17:49:21 +0000 (-0400) Subject: mgr/cephadm: add a type annotation to the ganesha conf template context X-Git-Tag: v19.0.0~1447^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=de9e8094aad0f387f46e7178fca791bc7766ed9a;p=ceph.git mgr/cephadm: add a type annotation to the ganesha conf template context This change makes this file pass mypy checking on mypy 0.981. Signed-off-by: John Mulligan --- diff --git a/src/pybind/mgr/cephadm/services/nfs.py b/src/pybind/mgr/cephadm/services/nfs.py index ee53283bd9c1..ad7c442eebd7 100644 --- a/src/pybind/mgr/cephadm/services/nfs.py +++ b/src/pybind/mgr/cephadm/services/nfs.py @@ -95,7 +95,7 @@ class NFSService(CephService): # generate the ganesha config def get_ganesha_conf() -> str: - context = { + context: Dict[str, Any] = { "user": rados_user, "nodeid": nodeid, "pool": POOL_NAME,