mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
cephfs-shell: Fix flake8 E302 blank line error
Fixes: https://tracker.ceph.com/issues/40836 Signed-off-by: Varsha Rao <varao@redhat.com>
This commit is contained in:
parent
521de4f94d
commit
d54de19578
@ -100,6 +100,7 @@ def get_chunks(file_size):
|
||||
def to_bytes(string):
|
||||
return bytes(string, encoding='utf-8')
|
||||
|
||||
|
||||
def ls(path, opts=''):
|
||||
# opts tries to be like /bin/ls opts
|
||||
almost_all = 'A' in opts
|
||||
@ -115,6 +116,7 @@ def ls(path, opts=''):
|
||||
except cephfs.ObjectNotFound:
|
||||
return []
|
||||
|
||||
|
||||
def glob(path, pattern):
|
||||
if isinstance(path, bytes):
|
||||
path = path.decode('utf-8')
|
||||
|
Loading…
Reference in New Issue
Block a user