The comparison of bytes vs string of the CA certificate produces a
false negative. This leads to rewriting certificates and affecting
connectivity to services.
Read in the certificate as bytes as well for a bytes vs bytes
comparison.
Change-Id: Icaf99f6a069c152f901210c38b26e71622560693
Closes-Bug: #1762431
(cherry picked from commit 522951870272f6b9036b2549f189851de11b2fb4)
Reviewed: https:/ /review. openstack. org/560421 /git.openstack. org/cgit/ openstack/ charm-neutron- api/commit/ ?id=6620eeb340a 66bec842813add8 e31ce9a33527d7
Committed: https:/
Submitter: Zuul
Branch: stable/18.02
commit 6620eeb340a66be c842813add8e31c e9a33527d7
Author: David Ames <email address hidden>
Date: Mon Apr 9 11:43:24 2018 -0700
Charm-helpers sync to fix CA cert comparison
The comparison of bytes vs string of the CA certificate produces a
false negative. This leads to rewriting certificates and affecting
connectivity to services.
Read in the certificate as bytes as well for a bytes vs bytes
comparison.
Change-Id: Icaf99f6a069c15 2f901210c38b26e 71622560693 9036b2549f18985 1de11b2fb4)
Closes-Bug: #1762431
(cherry picked from commit 522951870272f6b