]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: fix base class behavior on python3.6 55593/head
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 12 Oct 2022 18:15:59 +0000 (14:15 -0400)
committerAfreen <afreen23.git@gmail.com>
Tue, 27 Feb 2024 08:50:59 +0000 (14:20 +0530)
commit613fea98c0547c8a6a0f8347858c3e85bdf4557a
treeae699a9d1094a122354710ff0824e7d2ba96e1d7
parenta2a75264c5c64f589ee9dc85b46461805ff11a3e
cephadm: fix base class behavior on python3.6

This fixes the cephadm test files when running tox/pytest on python3.6
(centos/rhel 8).
Long story short, combining classmethod and property on py3.6 behaves
differently from py3.7 and up. Since the classmethod is actually
unnecessary for the base class to behave as it does, we drop that
decorator.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 7440d7a3c07d3e83ebb2ea7ac9cbbd94762e78ed)
src/cephadm/cephadm