From: Varsha Rao Date: Wed, 7 Oct 2020 17:01:01 +0000 (+0530) Subject: mgr/volumes/nfs: Fix wrong error message for pseudo path X-Git-Tag: v15.2.8~5^2~1^2~6^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F37855%2Fhead;p=ceph.git mgr/volumes/nfs: Fix wrong error message for pseudo path Fixes: https://tracker.ceph.com/issues/47783 Signed-off-by: Varsha Rao (cherry picked from commit 1552f7239c0e2dc4f661cd80f17369422c919c50) --- diff --git a/src/pybind/mgr/volumes/fs/nfs.py b/src/pybind/mgr/volumes/fs/nfs.py index d1f355770113..b18c90d42bbd 100644 --- a/src/pybind/mgr/volumes/fs/nfs.py +++ b/src/pybind/mgr/volumes/fs/nfs.py @@ -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] = []