Closed sed-i closed 1 year ago
No certs appear in relation data because the comparison if event.certificate_signing_request == self._csr: was always failing: the event CSR has a trailing \n.
if event.certificate_signing_request == self._csr:
\n
Strip the CSR from event for correct comparison.
juju show-unit alertmanager/0
Issue
No certs appear in relation data because the comparison
if event.certificate_signing_request == self._csr:
was always failing: the event CSR has a trailing\n
.Solution
Strip the CSR from event for correct comparison.
Context
Testing Instructions
juju show-unit alertmanager/0
shows only the private key. With this change, it also includes the cert.Release Notes
Strip the CSR from event for correct comparison.