]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerAdam King <adking@redhat.com>
Tue, 11 Jun 2024 16:29:48 +0000 (12:29 -0400)
commit7c11ab82181f3d267fd57675b2ebeaddd51197af
tree50f690dba191a3f76f10b7dde350cce4c217f0b4
parent193a1eec17430a4cc7dac073c0e1049da7604a3b
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>
(cherry picked from commit be1a8c2c43e97f91bd26554ba9dadc71c499865d)
src/cephadm/cephadmlib/daemons/iscsi.py