]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes: fix positional str formatting
authorMichael Fritch <mfritch@suse.com>
Tue, 3 Mar 2020 15:20:01 +0000 (08:20 -0700)
committerMichael Fritch <mfritch@suse.com>
Thu, 5 Mar 2020 20:19:33 +0000 (13:19 -0700)
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 <mfritch@suse.com>
src/pybind/mgr/volumes/fs/operations/group.py

index 1894bc439d7506b145c85080c8ba8101506b07ed..29bc8b73c52fc1e7d712fbca5a3a75fd6ffef14c 100644 (file)
@@ -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