We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ef1f1 commit 7ce3ceaCopy full SHA for 7ce3cea
src/pybind/mgr/nfs/export.py
@@ -714,14 +714,7 @@ def create_cephfs_export(self,
714
clients: list = [],
715
sectype: Optional[List[str]] = None) -> Dict[str, Any]:
716
717
- try:
718
- cephfs_path_is_dir(self.mgr, fs_name, path)
719
- except NotADirectoryError:
720
- raise NFSException(f"path {path} is not a dir", -errno.ENOTDIR)
721
- except cephfs.ObjectNotFound:
722
- raise NFSObjectNotFound(f"path {path} does not exist")
723
- except cephfs.Error as e:
724
- raise NFSException(e.args[1], -e.args[0])
+ validate_cephfs_path(self.mgr, fs_name, path)
725
726
pseudo_path = normalize_path(pseudo_path)
727
0 commit comments