]> git-server-git.apps.pok.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)
committerSebastian Wagner <sewagner@redhat.com>
Thu, 9 Sep 2021 14:17:45 +0000 (16:17 +0200)
Put path before --readonly so that it can still be positional.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit ffce51af8e7be9835ff01c8d9a5f378f19d4d746)

src/pybind/mgr/nfs/module.py

index e32c7d30b1b55c35b5feeefbc822a1b40c05cecf..0ebb92e968b21a2debf8375937225dd85c5854d2 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,