]> 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)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 17 Jul 2024 14:51:32 +0000 (16:51 +0200)
commite4212c13f5757ccdf49700b276a06adae255b1ec
tree01faca286e55be86d4febeedab4a7bbb8da567db
parente6231b04b52ebf3b9b31803282dd3074439e51ac
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)

Conflicts:
src/cephadm/cephadmlib/daemons/iscsi.py [ this file doesn't
  exist in quincy, get_version() lives in src/cephadm/cephadm ]
src/cephadm/cephadm