Skip to content

Commit ffcc157

Browse files
pybind/mgr: replace imports of distutils.util
In python 3.12 distutils is removed. Replace uses of distutils.util.strtobool with our own utility function. Signed-off-by: John Mulligan <[email protected]>
1 parent 51516ba commit ffcc157

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pybind/mgr/dashboard/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import time
1010
import urllib
1111
from datetime import datetime, timedelta
12-
from distutils.util import strtobool
1312

1413
import cherrypy
14+
from ceph.utils import strtobool
1515
from mgr_util import build_url
1616

1717
from . import mgr

src/pybind/mgr/volumes/fs/operations/pin_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import cephfs
44

55
from ..exception import VolumeException
6-
from distutils.util import strtobool
6+
from ceph.utils import strtobool
77

88
_pin_value = {
99
"export": lambda x: int(x),

0 commit comments

Comments
 (0)