]> 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)
committerMilind Changire <mchangir@redhat.com>
Sat, 13 Apr 2019 06:48:38 +0000 (12:18 +0530)
Signed-off-by: Milind Changire <mchangir@redhat.com>
src/tools/cephfs/cephfs-shell

index 0d00bd58984c929cbfaf644eb28573905369f99c..dbce650ddddc164ff6facb1b1bd33e81ec2adea0 100755 (executable)
@@ -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):