]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
python-common/cryptotools: unify and organize all endpoint functions
authorJustin Caratzas <jcaratza@ibm.com>
Mon, 6 Oct 2025 23:25:44 +0000 (19:25 -0400)
committerJustin Caratzas <jcaratza@ibm.com>
Mon, 6 Oct 2025 23:25:44 +0000 (19:25 -0400)
commit93752ef2d228b024dca436b052b7c71bfe48692e
tree945e0d0adef0a540b643e9a76ad5f2d553b337d6
parent19022bad62f847af31e05b7bcda95551eb6b4245
python-common/cryptotools: unify and organize all endpoint functions

Lightly reorganize and make the "endpoint" functions in cryptotools.py more
consistent and uniform. Use small functions for input and output
handling so that the handling is done the same way throughout. Pass a
pre-constructed crypto caller via the args to then endpoint functions.
Make generating the private key it's own named function rather than
one single (and only) function with overloaded behavior controlled by
a cli switch.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 552d7b4373afa1a93fe47ce234560b9c8485321d)

Resolves: rhbz#2401206
src/python-common/ceph/cryptotools/cryptotools.py
src/python-common/ceph/cryptotools/remote.py