From: Varsha Rao Date: Mon, 22 Jul 2019 06:01:53 +0000 (+0530) Subject: cephfs-shell: Fix flake8 indentation error X-Git-Tag: v15.1.0~2082^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=521de4f94d435ec688f217c6d5888529c81e181d;p=ceph.git cephfs-shell: Fix flake8 indentation error Fixes: https://tracker.ceph.com/issues/40836 Signed-off-by: Varsha Rao --- diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index 9f54d6cb45f..de81ed4456f 100755 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -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))