]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/mgr_util: convert certs to bytes before loading them 58627/head
authorAdam King <adking@redhat.com>
Mon, 22 Jul 2024 15:27:26 +0000 (11:27 -0400)
committerAdam King <adking@redhat.com>
Mon, 22 Jul 2024 15:27:26 +0000 (11:27 -0400)
commit3b66176507ed32dde1727fc45a793062ddf4dc30
tree0a1fdaf8d0574b5324b0db5b87007b44cbeac386
parent28f69d61870a0b4c9496943e539264d78ce06943
pybind/mgr/mgr_util: convert certs to bytes before loading them

This function expects to be passed bytes rather than a string.
Mypy complains about failing to do this conversion

mgr_util.py: note: In function "verify_cacrt_content":
mgr_util.py:547: error: Argument 2 to "load_certificate" has incompatible type "str"; expected "bytes"
mgr_util.py: note: In function "verify_tls":
mgr_util.py:584: error: Argument 2 to "load_certificate" has incompatible type "str"; expected "bytes"

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/mgr_util.py