From 66d2dc787202a8d7e2a50a2d70990fa05af49eb0 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Fri, 14 Mar 2025 19:08:31 +0530 Subject: [PATCH] mgr/volumes: fix issues pointed by flake8 Fixes: https://tracker.ceph.com/issues/70480 Signed-off-by: Rishabh Dave --- src/pybind/mgr/volumes/fs/operations/charmap_util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/volumes/fs/operations/charmap_util.py b/src/pybind/mgr/volumes/fs/operations/charmap_util.py index 8051b1839c059..4538ba6d7f12d 100644 --- a/src/pybind/mgr/volumes/fs/operations/charmap_util.py +++ b/src/pybind/mgr/volumes/fs/operations/charmap_util.py @@ -17,7 +17,7 @@ def charmap_set(fs, path, setting, value): """ if setting not in _charmap_type: - raise VolumeException(-errno.EINVAL, f"charmap setting invalid") + raise VolumeException(-errno.EINVAL, "charmap setting invalid") try: value = _charmap_type[setting](value) @@ -30,7 +30,7 @@ def charmap_set(fs, path, setting, value): raise VolumeException(-e.args[0], e.args[1]) try: - return fs.getxattr(path, f"ceph.dir.charmap").decode('utf-8') + return fs.getxattr(path, "ceph.dir.charmap").decode('utf-8') except cephfs.Error as e: raise VolumeException(-e.args[0], e.args[1]) @@ -50,7 +50,7 @@ def charmap_get(fs, path, setting): """ if setting not in _charmap_type and setting != 'charmap': - raise VolumeException(-errno.EINVAL, f"charmap setting invalid") + raise VolumeException(-errno.EINVAL, "charmap setting invalid") try: return fs.getxattr(path, f"ceph.dir.{setting}").decode('utf-8') -- 2.39.5