]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: add a type annotation to the ganesha conf template context
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 28 Mar 2023 17:49:21 +0000 (13:49 -0400)
committerAfreen <afreen23.git@gmail.com>
Thu, 15 Feb 2024 08:29:48 +0000 (13:59 +0530)
This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit de9e8094aad0f387f46e7178fca791bc7766ed9a)

src/pybind/mgr/cephadm/services/nfs.py

index 70e771679c09a19811762ed2134da1315a101236..0bd670377d01e25df7f480948975898582e7ebcd 100644 (file)
@@ -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,