]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: extract python() helper to execute python statement
authorKefu Chai <tchaikov@gmail.com>
Thu, 23 May 2024 23:16:14 +0000 (07:16 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sun, 26 May 2024 03:09:27 +0000 (11:09 +0800)
commitbe1a8c2c43e97f91bd26554ba9dadc71c499865d
treeab3da36ebdbd2c43c7f915486a5b16faec77f2b6
parent15eaef742e860d9f0538671776ed4151d437ea63
cephadm: extract python() helper to execute python statement

to prepare for a change to use importlib, then fallback to
pkg_resources. as the former is only available in Python 3.8, while
the latter is deprecated.

Refs https://tracker.ceph.com/issues/66201
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/cephadm/cephadmlib/daemons/iscsi.py