]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs-shell: don't use pkg_resources since its deprecated 58085/head
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 11:58:25 +0000 (17:28 +0530)
commitb6d7f36855f45e18d9b7528cc62a1a248fb517ad
tree2911d848112cac0ab26fb8aa2760f50cff006fce
parenta86cbeabda684ea3edc08cc66b41802d6d0a4a08
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