]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
python-common: add a utils function to replace distutils.util.strtobool
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 19 Sep 2024 00:44:39 +0000 (17:44 -0700)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 17 Mar 2025 19:43:15 +0000 (15:43 -0400)
commit102930733bfa4c77fa8a87463a1e505eabcacc67
tree22949a0fc61a03bc8dc7b5d221185da0a997e385
parent126b199fa98db1f703b4b442f23c55f97c6485c9
python-common: add a utils function to replace distutils.util.strtobool

As distutils is removed from python 3.12 ceph can no longer use the
simple conversion function once located in that module. Add our own
trivial replacement function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 51516ba146e9602c0dea1de65b040d737d1dab6a)
src/python-common/ceph/utils.py