]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind: fix mkdir_p in ceph_volume_client
authorJohn Spray <john.spray@redhat.com>
Mon, 9 Nov 2015 13:08:41 +0000 (13:08 +0000)
committerJohn Spray <john.spray@redhat.com>
Tue, 5 Jan 2016 00:47:53 +0000 (00:47 +0000)
Signed-off-by: John Spray <john.spray@redhat.com>
src/pybind/ceph_volume_client.py

index 6734e4072aa6196e430947f949ea16dfb98aea70..12ab59a62495a7e7ca2c1b6cd257625653155a1c 100644 (file)
@@ -425,7 +425,8 @@ class CephFSVolumeClient(object):
         else:
             return
 
-        parts = os.path.split(path)
+        parts = path.split(os.path.sep)
+
         for i in range(1, len(parts) + 1):
             subpath = os.path.join(*parts[0:i])
             try: