From: Milind Changire Date: Sat, 13 Apr 2019 05:14:00 +0000 (+0530) Subject: cephfs-shell: fix umask command X-Git-Tag: v15.1.0~2908^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b307999ab6959c2bef68d17fcdbb1c4baab6bcbf;p=ceph.git cephfs-shell: fix umask command Signed-off-by: Milind Changire --- diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index 0d00bd58984c..dbce650ddddc 100755 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -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):