]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephfs-shell: Fix flake8 indentation error
authorVarsha Rao <varao@redhat.com>
Mon, 22 Jul 2019 06:01:53 +0000 (11:31 +0530)
committerVarsha Rao <varao@redhat.com>
Mon, 22 Jul 2019 06:01:53 +0000 (11:31 +0530)
Fixes: https://tracker.ceph.com/issues/40836
Signed-off-by: Varsha Rao <varao@redhat.com>
src/tools/cephfs/cephfs-shell

index 9f54d6cb45f071b4cec6234c229396d89e1b954a..de81ed4456fbbd8c6ee8ff34f7e72a450d726fd5 100755 (executable)
@@ -16,7 +16,7 @@ import re
 import shlex
 
 if sys.version_info.major < 3:
-   raise RuntimeError("cephfs-shell is only compatible with python3")
+    raise RuntimeError("cephfs-shell is only compatible with python3")
 
 try:
     from cmd2 import with_argparser
@@ -123,7 +123,7 @@ def glob(path, pattern):
     if parent_dir == '':
         parent_dir = '/'
     if path == '/' or is_dir_exists(os.path.basename(path),
-                                        parent_dir):
+                                    parent_dir):
         for i in ls(path, opts='A'):
             if fnmatch.fnmatch(i.d_name, pattern):
                 paths.append(os.path.join(path, i.d_name))