]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/nfs: keep 'nfs export get' around for backward-compat
authorSage Weil <sage@newdream.net>
Mon, 21 Jun 2021 16:35:36 +0000 (12:35 -0400)
committerSage Weil <sage@newdream.net>
Tue, 22 Jun 2021 17:03:08 +0000 (13:03 -0400)
Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/nfs/module.py

index ebba14e008a44f33160518b7fe38d1d0af6f2e95..2baa025ab71b4500a9fc9d96167f63a6effde5eb 100644 (file)
@@ -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]: