]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: fix flake8 f-string formatting for py3.12
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 1 Nov 2024 15:07:13 +0000 (11:07 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 4 Nov 2024 20:36:47 +0000 (15:36 -0500)
Add whitespace to match typical python formatting as flake8 cares about
the formatting of the embedded expressions now.

Part of an effort to get ceph tox environments passing on Python 3.12.

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

index 29ddff2ffc2fa53a97c39ca7304ce41c82f7e05d..76ad8d9d0ce35839931c26f8665f93071962d917 100644 (file)
@@ -1285,7 +1285,7 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin):
             if latest < version:
                 raise RuntimeError(f"main.db version is newer ({version}) than module ({latest})")
             for i in range(version, latest):
-                self.log.info(f"upgrading main.db for {self.module_name} from {i-1}:{i}")
+                self.log.info(f"upgrading main.db for {self.module_name} from {i - 1}:{i}")
                 for sql in self.SCHEMA_VERSIONED[i]:
                     db.execute(sql)
             if version < latest: