Skip to content

Commit

Permalink
Merge pull request ceph#57000 from chenyuanrun/fix-mkdir-p
Browse files Browse the repository at this point in the history
ceph-volume: use os.makedirs for mkdir_p
  • Loading branch information
guits authored May 15, 2024
2 parents ff3b6ac + 5808a27 commit 18252fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ceph-volume/ceph_volume/util/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18252fe

Please sign in to comment.