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: v16.1.0~856^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1552f7239c0e2dc4f661cd80f17369422c919c50;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 --- diff --git a/src/pybind/mgr/volumes/fs/nfs.py b/src/pybind/mgr/volumes/fs/nfs.py index d1f355770113c..b18c90d42bbd0 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] = []