]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/mgr_module correct typing of self_test
authorKefu Chai <kchai@redhat.com>
Mon, 22 Feb 2021 03:46:48 +0000 (11:46 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 25 Feb 2021 07:20:27 +0000 (15:20 +0800)
self_test() is allowed to return str

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/mgr_module.py

index abfcfbd1bfb0319a487f25bc7b6ef6f5c1a634ed..9d11583aa893d907814b5c024a3bd1cda5962b97 100644 (file)
@@ -1496,7 +1496,7 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin):
     def set_localized_store(self, key: str, val: Optional[str]) -> None:
         return self._set_localized(key, val, self.set_store)
 
-    def self_test(self) -> None:
+    def self_test(self) -> Optional[str]:
         """
         Run a self-test on the module. Override this function and implement
         a best as possible self-test for (automated) testing of the module