From f46b5059e635228f07dd5fe593f2d7454c3aa67b Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Tue, 3 Mar 2020 08:20:01 -0700 Subject: [PATCH] mgr/volumes: fix positional str formatting fixes mypy error: volumes/fs/operations/group.py: note: In function "create_group": volumes/fs/operations/group.py:135: error: Not all arguments converted during string formatting Fixes: https://tracker.ceph.com/issues/44393 Signed-off-by: Michael Fritch --- src/pybind/mgr/volumes/fs/operations/group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/volumes/fs/operations/group.py b/src/pybind/mgr/volumes/fs/operations/group.py index 1894bc439d750..29bc8b73c52fc 100644 --- a/src/pybind/mgr/volumes/fs/operations/group.py +++ b/src/pybind/mgr/volumes/fs/operations/group.py @@ -132,7 +132,7 @@ def create_group(fs, vol_spec, groupname, pool, mode, uid, gid): log.debug("cleaning up subvolume group path: {0}".format(path)) fs.rmdir(path) except cephfs.Error as ce: - log.debug("failed to clean up subvolume group {0} with path: {0} ({1})".format(groupname, path, ce)) + log.debug("failed to clean up subvolume group {0} with path: {1} ({2})".format(groupname, path, ce)) if isinstance(e, cephfs.Error): e = VolumeException(-e.args[0], e.args[1]) raise e -- 2.39.5