]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: get cephadm version information from zipapp module
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 27 Apr 2023 17:36:51 +0000 (13:36 -0400)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:35:12 +0000 (13:35 -0400)
commit0b95fdb1b06fd034dc9f68c3cb9b7b68d66121e5
treed3192c2c3dad91b5066ff4c81d95b153192ad3d3
parente516b7dcdf8ae1ba4abd6d25ff6c5a89d7efff2d
cephadm: get cephadm version information from zipapp module

Use the `_version.py` module that gets embedded into the zipapp at build
time to print cephadm's own version information.
The version string printed is basically copied from the one printed by
the `ceph` command.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit cfa2d0de77b71a6b61b75cd0ea408065aa9fbd45)
src/cephadm/cephadm.py