From f307c0dccdc999aa9cbef0e510e4c0ff9dc1147e Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 21 Jun 2021 12:35:36 -0400 Subject: [PATCH] mgr/nfs: keep 'nfs export get' around for backward-compat Signed-off-by: Sage Weil --- src/pybind/mgr/nfs/module.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pybind/mgr/nfs/module.py b/src/pybind/mgr/nfs/module.py index ebba14e008a44..2baa025ab71b4 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]: -- 2.39.5