]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
python-common/cryptotools: catch all failures to read cert
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 25 Apr 2025 15:05:46 +0000 (11:05 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 7 Jul 2025 13:34:08 +0000 (09:34 -0400)
commitf6ab08783c0f121d33709a2aaecb6087c69ae3f2
tree30778d65ef18e67140c61cfc15d692eac82205cd
parent0eb2f4b1327e9a0da11db246fcbd0c4ed4d832f0
python-common/cryptotools: catch all failures to read cert

Previously, the internal crypto caller would catch (and convert) some
errors when reading the cert but not all cases. Move the logic to catch
the errors to a common location and do it once consistently.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/python-common/ceph/cryptotools/internal.py