]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: fix test failure on newer python
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 13 Dec 2023 19:33:20 +0000 (14:33 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 21 Mar 2024 22:30:58 +0000 (18:30 -0400)
commit07b44900e8c8bef434e848bf7aa84d18d78d8bd6
tree5d44ce4b9bdb2bd223cd5d6bd185861ec29a958d
parentf8160ed11b046bc747bbf045173fb222688ed669
mgr/cephadm: fix test failure on newer python

Tests that touch this enum fail for me locally but pass in the CI. This
seems to be due to new enum related behavior in Python 3.11.
See: https://blog.pecar.me/python-enum
Instead of fixing it as suggested in the above blog, adding a __str__
method works on all python versions I care to know about.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/cephadm/utils.py