]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: remove trailing semicolons on python code
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 7 May 2024 17:23:00 +0000 (13:23 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 13 Jun 2024 14:14:29 +0000 (10:14 -0400)
Remove C-ish valid but non-idomatic trailing semicolons from some python
source lines.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/mgr_module.py

index 60c9ce06ca998ccc05a864d4e39c4ca6dd9449c8..2d57dfe6cdac817cae953c55e54ce57926e27457 100644 (file)
@@ -555,7 +555,7 @@ def MgrModuleRecoverDB(func: Callable) -> Callable:
                     raise
                 self.log.debug(f"attempting reopen of database")
                 self.close_db()
-                self.open_db();
+                self.open_db()
                 # allow retry of func(...)
     check.__signature__ = inspect.signature(func)  # type: ignore[attr-defined]
     return check
@@ -1291,7 +1291,7 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin):
             if not self.have_enough_osds():
                 return None
             self.create_mgr_pool()
-        uri = f"file:///{self.MGR_POOL_NAME}:{self.module_name}/main.db?vfs=ceph";
+        uri = f"file:///{self.MGR_POOL_NAME}:{self.module_name}/main.db?vfs=ceph"
         self.log.debug(f"using uri {uri}")
         try:
             db = sqlite3.connect(uri, check_same_thread=False, uri=True, autocommit=False) # type: ignore[call-arg]
@@ -1322,10 +1322,10 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin):
             return self._db
         db_allowed = self.get_ceph_option("mgr_pool")
         if not db_allowed:
-            raise MgrDBNotReady();
+            raise MgrDBNotReady()
         self._db = self.open_db()
         if self._db is None:
-            raise MgrDBNotReady();
+            raise MgrDBNotReady()
         return self._db
 
     @property