]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephfs-shell: don't use pkg_resources since its deprecated 55711/head
authorRishabh Dave <ridave@redhat.com>
Thu, 22 Feb 2024 12:31:59 +0000 (18:01 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 4 Apr 2024 12:28:26 +0000 (17:58 +0530)
commit68b5766be9b0d88a6c2c78e267bdf0128bf6cec5
tree3d4894ef16a39895033d5163ca2af36b7107b43b
parent9bce68a14f322a3f4db334d50292b7847911a92e
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>
src/tools/cephfs/shell/cephfs-shell