From aaa57afd2930b6dafcf4dde4e2d939c428d290f4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 7 Jun 2021 16:45:29 -0400 Subject: [PATCH] mgr/nfs: allow multiple addrs for new exports Signed-off-by: Sage Weil --- src/pybind/mgr/nfs/module.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pybind/mgr/nfs/module.py b/src/pybind/mgr/nfs/module.py index aa4ae6385c3..c4cda93214a 100644 --- a/src/pybind/mgr/nfs/module.py +++ b/src/pybind/mgr/nfs/module.py @@ -32,14 +32,14 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): binding: str, path: Optional[str] = '/', readonly: Optional[bool] = False, - addr: Optional[str] = None, + addr: Optional[List[str]] = None, squash: str = 'none', ) -> Tuple[int, str, str]: """Create a cephfs export""" clients = [] if addr: clients = [{ - 'addresses': [addr], + 'addresses': addr, 'access_type': 'ro' if readonly else 'rw', 'squash': squash, }] @@ -56,7 +56,7 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): cluster_id: str, binding: str, readonly: Optional[bool] = False, - addr: Optional[str] = None, + addr: Optional[List[str]] = None, realm: Optional[str] = None, ) -> Tuple[int, str, str]: """Create an RGW export""" @@ -64,7 +64,7 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): squash = 'none' if addr: clients = [{ - 'addresses': [addr], + 'addresses': addr, 'access_type': 'ro' if readonly else 'rw', 'squash': squash, }] -- 2.39.5