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: v17.2.8~507^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a4a89b157964cadd4aea9c4a08252f159891bb99;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 (cherry picked from commit de9e8094aad0f387f46e7178fca791bc7766ed9a) --- diff --git a/src/pybind/mgr/cephadm/services/nfs.py b/src/pybind/mgr/cephadm/services/nfs.py index 70e771679c09..0bd670377d01 100644 --- a/src/pybind/mgr/cephadm/services/nfs.py +++ b/src/pybind/mgr/cephadm/services/nfs.py @@ -98,7 +98,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,