]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes/fs: add extra blank line 43323/head
authorManasvi Goyal <55101825+ManasviGoyal@users.noreply.github.com>
Mon, 27 Sep 2021 18:18:07 +0000 (23:48 +0530)
committerGitHub <noreply@github.com>
Mon, 27 Sep 2021 18:18:07 +0000 (23:48 +0530)
Fixes: https://tracker.ceph.com/issues/51391
Signed-off-by: Manasvi Goyal <mg.manasvi@gmail.com>
src/pybind/mgr/volumes/fs/operations/resolver.py

index a9543654e66d8a80245e4c686cf47c86339c5229..c7ae8c1a3109a88b1b4b37a6ba0c340b85d3bbce 100644 (file)
@@ -2,12 +2,14 @@ import os
 
 from .group import Group
 
+
 def splitall(path):
     if path == "/":
         return ["/"]
     s = os.path.split(path)
     return splitall(s[0]) + [s[1]]
 
+
 def resolve(vol_spec, path):
     parts = splitall(path)
     if len(parts) != 4 or os.path.join(parts[0], parts[1]) != vol_spec.subvolume_prefix:
@@ -16,6 +18,7 @@ def resolve(vol_spec, path):
     subvolname = parts[3]
     return (groupname, subvolname)
 
+
 def resolve_trash(vol_spec, path):
     parts = splitall(path)
     if len(parts) != 6 or os.path.join(parts[0], parts[1]) != vol_spec.subvolume_prefix or \