From 6b828f8e58c65e01fbca6609bff5f99c992a4e09 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Wed, 7 Oct 2020 22:31:01 +0530 Subject: [PATCH] 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) --- src/pybind/mgr/volumes/fs/nfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] = [] -- 2.47.3