]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/prometheus: avoid using distutils
authorKefu Chai <tchaikov@gmail.com>
Sun, 18 Dec 2022 12:15:06 +0000 (20:15 +0800)
committerPedro Gonzalez Gomez <pegonzal@redhat.com>
Thu, 22 Dec 2022 10:59:35 +0000 (11:59 +0100)
commit53467fd637db88d724a58c30b4040f3fd95d795f
tree5e771ffa84780b65df53a007d38621e8a7c4878f
parentfe0048cd0f371d84655d1736c93e9b66113fd2d2
pybind/mgr/prometheus: avoid using distutils

to silence warnings like:

4: prometheus/module.py:35
4:   /var/ssd/ceph/src/pybind/mgr/prometheus/module.py:35: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
4:     v = StrictVersion(cherrypy.__version__)

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 9f0ee9798563efe4ce9759f5d8c0ca6aa47a6838)
src/pybind/mgr/prometheus/module.py