]> 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>
Tue, 20 Feb 2024 14:04:02 +0000 (09:04 -0500)
commit512154fa8d8fb58aefe5ddcedad865ad37a1634a
tree3ea97be66fea5c306b6efb20135d02711a8957ea
parentb985f5780c98caae5301503fe5b4734dbd1fcb55
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)
src/cephadm/cephadmlib/file_utils.py