"""
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)
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])
"""
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')