]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephfs-shell: rewrite call to perror in do_du
authorRishabh Dave <ridave@redhat.com>
Mon, 19 Aug 2019 05:28:09 +0000 (10:58 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 13 Sep 2019 05:15:46 +0000 (10:45 +0530)
Adapt to new signature of cmd2.Cmd.perror.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/tools/cephfs/cephfs-shell

index e38cc809679b2e15ea3b989bdbf29539c1787f4c..0354755118c517f698d99362df9804ab0ca0ffe9 100755 (executable)
@@ -1168,7 +1168,7 @@ sub-directories, files')
                         f.decode('utf-8')))
                 except (libcephfs.Error, OSError):
                     self.perror('{} : no such directory exists'.format(f.\
-                        decode('utf-8')), False)
+                        decode('utf-8')), apply_style=True)
                     continue
 
         for path in args.paths: