Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

octopus: mgr/volumes/nfs: Fix wrong error message for pseudo path #37855

Merged
merged 1 commit into from Nov 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pybind/mgr/volumes/fs/nfs.py
Expand Up @@ -556,7 +556,7 @@ def create_export(self, fs_name, cluster_id, pseudo_path, read_only, path):
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] = []
Expand Down