Skip to content

Commit

Permalink
mgr/nfs: fix 'nfs export create' argument order
Browse files Browse the repository at this point in the history
Put path before --readonly so that it can still be positional.

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
liewegas committed Jun 4, 2021
1 parent 3123ab6 commit 2052a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pybind/mgr/nfs/module.py
Expand Up @@ -28,8 +28,8 @@ def _cmd_nfs_export_create_cephfs(self,
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,
Expand Down

0 comments on commit 2052a4b

Please sign in to comment.