]> 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)
committerAdam King <adking@redhat.com>
Tue, 25 Apr 2023 12:36:55 +0000 (08:36 -0400)
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 ee53283bd9c185aa135a3d06efdde6ba62316346..ad7c442eebd751a4c49734aa5ad659a5dcb840c7 100644 (file)
@@ -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,