]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: allow passing pathlib.Path objects to file_utils.makedirs
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 24 Nov 2023 19:45:01 +0000 (14:45 -0500)
committerAdam King <adking@redhat.com>
Wed, 27 Mar 2024 20:11:42 +0000 (16:11 -0400)
commitd81091c2e9fa9670565df16d45eaf844c330b249
tree833dd0d460b8d10ef5672158b8e42a16a3c7748f
parent657177479666b093913887722919b393d757bec1
cephadm: allow passing pathlib.Path objects to file_utils.makedirs

Update the type annotations to allow passing pathlib.Path objects to the
makedirs function. All the calls makedirs uses already can accept Path
objects. This causes mypy to accept calling makedirs with a Path
argument and Paths are nice.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 21a16007e4e578e04907775aa4e96febf02d862e)
(cherry picked from commit 512154fa8d8fb58aefe5ddcedad865ad37a1634a)
src/cephadm/cephadmlib/file_utils.py