]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes/nfs: Fix wrong error message for pseudo path 37583/head
authorVarsha Rao <varao@redhat.com>
Wed, 7 Oct 2020 17:01:01 +0000 (22:31 +0530)
committerVarsha Rao <varao@redhat.com>
Wed, 7 Oct 2020 17:01:01 +0000 (22:31 +0530)
Fixes: https://tracker.ceph.com/issues/47783
Signed-off-by: Varsha Rao <varao@redhat.com>
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] = []