From fc693abe62b5c3172c705a7e506303d6990d048f Mon Sep 17 00:00:00 2001 From: Dhairya Parmar Date: Thu, 14 Sep 2023 15:03:35 +0530 Subject: [PATCH] mgr: fix some doc strings in object_format.py Fixes: https://tracker.ceph.com/issues/62641 Signed-off-by: Dhairya Parmar (cherry picked from commit 106b88537ddd2a0ecc5b38eefa765af16fac14f6) --- src/pybind/mgr/object_format.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/object_format.py b/src/pybind/mgr/object_format.py index 8b60aa1b3dc..4a2b6fa8b69 100644 --- a/src/pybind/mgr/object_format.py +++ b/src/pybind/mgr/object_format.py @@ -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)) -- 2.47.3