Skip to content

Commit 5808a27

Browse files
committed
ceph-volume: use os.makedirs for mkdir_p
Fixes: https://tracker.ceph.com/issues/65584 Signed-off-by: Chen Yuanrun <[email protected]>
1 parent addad6c commit 5808a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ceph-volume/ceph_volume/util/system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def mkdir_p(path, chown=True):
134134
A `mkdir -p` that defaults to chown the path to the ceph user
135135
"""
136136
try:
137-
os.mkdir(path)
137+
os.makedirs(path)
138138
except OSError as e:
139139
if e.errno == errno.EEXIST:
140140
pass

0 commit comments

Comments
 (0)