Skip to content

Commit b179889

Browse files
Merge pull request ceph#62301 from rishabh-d-dave/mgr-vol-fix-flake8-err
mgr/volumes: fix issues pointed by flake8 Reviewed-by: Venky Shankar <[email protected]> Reviewed-by: Patrick Donnelly <[email protected]>
2 parents fecad38 + 66d2dc7 commit b179889

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pybind/mgr/volumes/fs/operations/charmap_util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def charmap_set(fs, path, setting, value):
1717
"""
1818

1919
if setting not in _charmap_type:
20-
raise VolumeException(-errno.EINVAL, f"charmap setting invalid")
20+
raise VolumeException(-errno.EINVAL, "charmap setting invalid")
2121

2222
try:
2323
value = _charmap_type[setting](value)
@@ -30,7 +30,7 @@ def charmap_set(fs, path, setting, value):
3030
raise VolumeException(-e.args[0], e.args[1])
3131

3232
try:
33-
return fs.getxattr(path, f"ceph.dir.charmap").decode('utf-8')
33+
return fs.getxattr(path, "ceph.dir.charmap").decode('utf-8')
3434
except cephfs.Error as e:
3535
raise VolumeException(-e.args[0], e.args[1])
3636

@@ -50,7 +50,7 @@ def charmap_get(fs, path, setting):
5050
"""
5151

5252
if setting not in _charmap_type and setting != 'charmap':
53-
raise VolumeException(-errno.EINVAL, f"charmap setting invalid")
53+
raise VolumeException(-errno.EINVAL, "charmap setting invalid")
5454

5555
try:
5656
return fs.getxattr(path, f"ceph.dir.{setting}").decode('utf-8')

0 commit comments

Comments
 (0)