]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes: fix arg typo '.' -> ','
authorMichael Fritch <mfritch@suse.com>
Tue, 3 Mar 2020 15:18:36 +0000 (08:18 -0700)
committerRamana Raja <rraja@redhat.com>
Thu, 19 Mar 2020 12:57:32 +0000 (18:27 +0530)
fixes mypy error:

volumes/fs/fs_util.py: note: In function "get_ancestor_xattr":
volumes/fs/fs_util.py:129: error: Too few arguments for "VolumeException"

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit e2516a480679090a27de3401410d4f9a85cae8d2)

src/pybind/mgr/volumes/fs/fs_util.py

index 524f56a2ab0f24bccefae5917ab86403013425fd..79c0fa9c092383ca404e210ab84f30047438cf7f 100644 (file)
@@ -126,6 +126,6 @@ def get_ancestor_xattr(fs, path, attr):
         return fs.getxattr(path, attr).decode('utf-8')
     except cephfs.NoData as e:
         if path == "/":
-            raise VolumeException(-e.args[0]. e.args[1])
+            raise VolumeException(-e.args[0], e.args[1])
         else:
             return get_ancestor_xattr(fs, os.path.split(path)[0], attr)