From 2db3cfabc3d5154036ccf3168252f26a75ef0935 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 27 Jul 2021 10:46:25 -0400 Subject: [PATCH] mgr/nfs: remove unused 'realm' arg for 'nfs export create rgw' This argument is not used. The rgw exports currently only work on the default realm. Signed-off-by: Sage Weil --- src/pybind/mgr/nfs/export.py | 1 - src/pybind/mgr/nfs/module.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/pybind/mgr/nfs/export.py b/src/pybind/mgr/nfs/export.py index 44afe3dd3e7b..545fbe4f50b8 100644 --- a/src/pybind/mgr/nfs/export.py +++ b/src/pybind/mgr/nfs/export.py @@ -585,7 +585,6 @@ class ExportMgr: access_type: str, read_only: bool, squash: str, - realm: Optional[str] = None, clients: list = []) -> Tuple[int, str, str]: pseudo_path = self.format_path(pseudo_path) diff --git a/src/pybind/mgr/nfs/module.py b/src/pybind/mgr/nfs/module.py index 04ce5e80925f..501463975183 100644 --- a/src/pybind/mgr/nfs/module.py +++ b/src/pybind/mgr/nfs/module.py @@ -49,12 +49,10 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): pseudo_path: str, readonly: Optional[bool] = False, client_addr: Optional[List[str]] = None, - realm: Optional[str] = None, squash: str = 'none', ) -> Tuple[int, str, str]: """Create an RGW export""" return self.export_mgr.create_export(fsal_type='rgw', bucket=bucket, - realm=realm, cluster_id=cluster_id, pseudo_path=pseudo_path, read_only=readonly, squash=squash, addr=client_addr) -- 2.47.3