]> git-server-git.apps.pok.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)
committerNizamudeen A <nia@redhat.com>
Mon, 5 Jan 2026 10:44:33 +0000 (16:14 +0530)
commitca9d971e3b141d4c065852a90592627f61b89a37
tree5f92551e931cf784400c6cf83aa8ed12bcd363f8
parent89c1814d2868bb1f72e430ca05b208d4f03ce2a5
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>
(cherry picked from commit f6ab08783c0f121d33709a2aaecb6087c69ae3f2)
src/python-common/ceph/cryptotools/internal.py