]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: fix some doc strings in object_format.py
authorDhairya Parmar <dparmar@redhat.com>
Thu, 14 Sep 2023 09:33:35 +0000 (15:03 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Wed, 31 Jan 2024 10:24:08 +0000 (15:54 +0530)
Fixes: https://tracker.ceph.com/issues/62641
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit 106b88537ddd2a0ecc5b38eefa765af16fac14f6)

src/pybind/mgr/object_format.py

index 8b60aa1b3dc84ca8ea985c9fbeeac27b9161a2ff..4a2b6fa8b69b1e6e66e737240cdf2de6c8808eb5 100644 (file)
@@ -228,8 +228,8 @@ class YAMLFormatter(Protocol):
 
 class ReturnValueProvider(Protocol):
     def mgr_return_value(self) -> int:
-        """Return an integer value to provide the Ceph MGR with a error code
-        for the MGR's response tuple. Zero means success. Return an negative
+        """Return an integer value to provide the Ceph MGR with an error code
+        for the MGR's response tuple. Zero means success. Return a negative
         errno otherwise.
         """
         ...  # pragma: no cover
@@ -281,7 +281,7 @@ def _is_yaml_data_provider(obj: YAMLDataProvider) -> bool:
 
 
 def _is_return_value_provider(obj: ReturnValueProvider) -> bool:
-    """Return true if obj is usable as a YAMLDataProvider."""
+    """Return true if obj is usable as a ReturnValueProvider."""
     return callable(getattr(obj, 'mgr_return_value', None))