]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes/nfs: Fix wrong error message for pseudo path 37855/head
authorVarsha Rao <varao@redhat.com>
Wed, 7 Oct 2020 17:01:01 +0000 (22:31 +0530)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2020 09:36:23 +0000 (10:36 +0100)
Fixes: https://tracker.ceph.com/issues/47783
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit 1552f7239c0e2dc4f661cd80f17369422c919c50)

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

index d1f355770113c7c32c9143e1f2ee983cee565406..b18c90d42bbd039071ddb2171ac3d654f0aa39d3 100644 (file)
@@ -556,7 +556,7 @@ class FSExport(object):
             pseudo_path = self.format_path(pseudo_path)
             if not isabs(pseudo_path) or pseudo_path == "/":
                 return -errno.EINVAL, "", f"pseudo path {pseudo_path} is invalid. "\
-                        "It should not be absolute path or just '/'."
+                        "It should be an absolute path and it cannot be just '/'."
 
             if cluster_id not in self.exports:
                 self.exports[cluster_id] = []