From: Michael Fritch Date: Tue, 3 Mar 2020 15:20:01 +0000 (-0700) Subject: mgr/volumes: fix positional str formatting X-Git-Tag: v15.1.1~93^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f46b5059e635228f07dd5fe593f2d7454c3aa67b;p=ceph.git 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 --- diff --git a/src/pybind/mgr/volumes/fs/operations/group.py b/src/pybind/mgr/volumes/fs/operations/group.py index 1894bc439d75..29bc8b73c52f 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