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: v18.1.0~130^2~13 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8ec91f78f36398f8f07d4cccb05c0c42bfaf045e;p=ceph-ci.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 ee53283bd9c..ad7c442eebd 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,