Skip to content

Commit 18252fe

Browse files
authored
Merge pull request ceph#57000 from chenyuanrun/fix-mkdir-p
ceph-volume: use os.makedirs for mkdir_p
2 parents ff3b6ac + 5808a27 commit 18252fe

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)