]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephfs-shell: don't use pkg_resources since its deprecated
authorRishabh Dave <ridave@redhat.com>
Thu, 22 Feb 2024 12:31:59 +0000 (18:01 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 17 Jun 2024 12:09:23 +0000 (17:39 +0530)
commit9183744a763ab0f20131caf1fc288be7dc7dc2e4
treefebfe05fbfcb630233e73fb03cca54909fad3243
parentbf811150993797d57b6ace82840a1cfe2028c0db
cephfs-shell: don't use pkg_resources since its deprecated

Currently, cephfs-shell prints warnings, hangs and aborts when launched.
This occurs because Python module "pkg_resources" has been deprecated.
We use that module only checking version of other Python modules used in
cephfs-shell. Use "Version" from "packaging.version" instead.

Fixes: https://tracker.ceph.com/issues/64538
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 68b5766be9b0d88a6c2c78e267bdf0128bf6cec5)
src/tools/cephfs/shell/cephfs-shell