From 1146c3d4600deda461b0349b916339265e9c8d45 Mon Sep 17 00:00:00 2001 From: Chen Yuanrun Date: Fri, 19 Apr 2024 07:24:45 +0000 Subject: [PATCH] ceph-volume: use os.makedirs for mkdir_p Fixes: https://tracker.ceph.com/issues/65584 Signed-off-by: Chen Yuanrun (cherry picked from commit 5808a271167cae3f2a7651c8ef612b1c66d20587) --- src/ceph-volume/ceph_volume/util/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5