]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/nfs: fix 'nfs export create' argument order
authorSage Weil <sage@newdream.net>
Fri, 4 Jun 2021 17:35:46 +0000 (13:35 -0400)
committerSage Weil <sage@newdream.net>
Fri, 4 Jun 2021 20:56:17 +0000 (16:56 -0400)
Put path before --readonly so that it can still be positional.

Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/nfs/module.py

index a3d4272c98b9fce4ed0999df7c7a7f3b5f4d8144..06342aae900a176a215f10f3e56ad37de0138645 100644 (file)
@@ -28,8 +28,8 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule):
                                       fsname: str,
                                       clusterid: str,
                                       binding: str,
-                                      readonly: bool = False,
-                                      path: str = '/') -> Tuple[int, str, str]:
+                                      path: str = '/',
+                                      readonly: bool = False) -> Tuple[int, str, str]:
         """Create a cephfs export"""
         # TODO Extend export creation for rgw.
         return self.export_mgr.create_export(fsal_type='cephfs', fs_name=fsname,