From: Chen Yuanrun Date: Fri, 19 Apr 2024 07:24:45 +0000 (+0000) Subject: ceph-volume: use os.makedirs for mkdir_p X-Git-Tag: v20.0.0~1944^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5808a271167cae3f2a7651c8ef612b1c66d20587;p=ceph.git ceph-volume: use os.makedirs for mkdir_p Fixes: https://tracker.ceph.com/issues/65584 Signed-off-by: Chen Yuanrun --- diff --git a/src/ceph-volume/ceph_volume/util/system.py b/src/ceph-volume/ceph_volume/util/system.py index 590a0599b56b5..4b44d31336cc5 100644 --- a/src/ceph-volume/ceph_volume/util/system.py +++ b/src/ceph-volume/ceph_volume/util/system.py @@ -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