]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: fix umask command
authorMilind Changire <mchangir@redhat.com>
Sat, 13 Apr 2019 05:14:00 +0000 (10:44 +0530)
committerNathan Cutler <ncutler@suse.com>
Thu, 18 Apr 2019 11:03:09 +0000 (13:03 +0200)
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit b307999ab6959c2bef68d17fcdbb1c4baab6bcbf)

src/tools/cephfs/cephfs-shell

index 0d00bd58984c929cbfaf644eb28573905369f99c..dbce650ddddc164ff6facb1b1bd33e81ec2adea0 100644 (file)
@@ -880,8 +880,8 @@ sub-directories, files')
                 self.poutput('%s: no such file' % file_name)
 
     umask_parser = argparse.ArgumentParser(description='Set umask value.')
-    umask_parser.add_argument(
-        'mode', help='Mode', action='store', nargs='?', default='')
+    umask_parser.add_argument('mode', help='Mode', type=str, action=ModeAction,
+                              nargs='?', default='')
 
     @with_argparser(umask_parser)
     def do_umask(self, args):