From: Sage Weil Date: Mon, 21 Jun 2021 16:35:36 +0000 (-0400) Subject: mgr/nfs: keep 'nfs export get' around for backward-compat X-Git-Tag: v17.1.0~1551^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f307c0dccdc999aa9cbef0e510e4c0ff9dc1147e;p=ceph.git mgr/nfs: keep 'nfs export get' around for backward-compat Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/nfs/module.py b/src/pybind/mgr/nfs/module.py index ebba14e008a4..2baa025ab71b 100644 --- a/src/pybind/mgr/nfs/module.py +++ b/src/pybind/mgr/nfs/module.py @@ -78,6 +78,11 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): """Fetch a export of a NFS cluster given the pseudo path/binding""" return self.export_mgr.get_export(cluster_id=cluster_id, pseudo_path=pseudo_path) + @CLICommand('nfs export get', perm='r') + def _cmd_nfs_export_get(self, cluster_id: str, pseudo_path: str) -> Tuple[int, str, str]: + """Fetch a export of a NFS cluster given the pseudo path/binding (DEPRECATED)""" + return self.export_mgr.get_export(cluster_id=cluster_id, pseudo_path=pseudo_path) + @CLICommand('nfs export apply', perm='rw') @CLICheckNonemptyFileInput(desc='Export JSON specification') def _cmd_nfs_export_apply(self, cluster_id: str, inbuf: str) -> Tuple[int, str, str]: