From: Sage Weil Date: Sun, 20 Jun 2021 14:10:15 +0000 (-0400) Subject: mgr/nfs: addr -> client_addr for 'nfs export create ...' X-Git-Tag: v17.1.0~1551^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=729f2f6adf7ea6207d61cf9f3f3ccb90560733fc;p=ceph.git mgr/nfs: addr -> client_addr for 'nfs export create ...' Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/nfs/module.py b/src/pybind/mgr/nfs/module.py index a5e0c8cbdd32..ebba14e008a4 100644 --- a/src/pybind/mgr/nfs/module.py +++ b/src/pybind/mgr/nfs/module.py @@ -32,14 +32,14 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): pseudo_path: str, path: Optional[str] = '/', readonly: Optional[bool] = False, - addr: Optional[List[str]] = None, + client_addr: Optional[List[str]] = None, squash: str = 'none', ) -> Tuple[int, str, str]: """Create a cephfs export""" return self.export_mgr.create_export(fsal_type='cephfs', fs_name=fsname, cluster_id=cluster_id, pseudo_path=pseudo_path, read_only=readonly, path=path, - squash=squash, addr=addr) + squash=squash, addr=client_addr) @CLICommand('nfs export create rgw', perm='rw') def _cmd_rgw_export_create_rgw( @@ -48,7 +48,7 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): cluster_id: str, pseudo_path: str, readonly: Optional[bool] = False, - addr: Optional[List[str]] = None, + client_addr: Optional[List[str]] = None, realm: Optional[str] = None, ) -> Tuple[int, str, str]: """Create an RGW export""" @@ -56,7 +56,7 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): realm=realm, cluster_id=cluster_id, pseudo_path=pseudo_path, read_only=readonly, squash='none', - addr=addr) + addr=client_addr) @CLICommand('nfs export rm', perm='rw') def _cmd_nfs_export_rm(self, cluster_id: str, pseudo_path: str) -> Tuple[int, str, str]: