]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: use os.makedirs for mkdir_p 57000/head
authorChen Yuanrun <chen-yuanrun@foxmail.com>
Fri, 19 Apr 2024 07:24:45 +0000 (07:24 +0000)
committerChen Yuanrun <chen-yuanrun@foxmail.com>
Fri, 19 Apr 2024 07:24:45 +0000 (07:24 +0000)
Fixes: https://tracker.ceph.com/issues/65584
Signed-off-by: Chen Yuanrun <chen-yuanrun@foxmail.com>
src/ceph-volume/ceph_volume/util/system.py

index 590a0599b56b58aef5ac42b65f1f1b5481ba120f..4b44d31336cc567b3017487c80e69645f6270f7f 100644 (file)
@@ -134,7 +134,7 @@ def mkdir_p(path, chown=True):
     A `mkdir -p` that defaults to chown the path to the ceph user
     """
     try:
-        os.mkdir(path)
+        os.makedirs(path)
     except OSError as e:
         if e.errno == errno.EEXIST:
             pass