mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 23:50:03 -06:00
caless tests: decode cert bytes in debug log
Bytes would cause the logger to throw up while interpolating the string. Reviewed-By: Michal Reznik <mreznik@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
parent
a3009b392a
commit
983234c91b
@ -381,7 +381,7 @@ class CALessBase(IntegrationTest):
|
||||
# Check the cert PEM file
|
||||
remote_cacrt = host.get_file_contents(paths.IPA_CA_CRT)
|
||||
logger.debug('%s:/etc/ipa/ca.crt contents:\n%s',
|
||||
host, remote_cacrt)
|
||||
host, remote_cacrt.decode('utf-8'))
|
||||
cacrt = x509.load_unknown_x509_certificate(remote_cacrt)
|
||||
logger.debug('%s: Decoded /etc/ipa/ca.crt:\n%r',
|
||||
host, cacrt.public_bytes(x509.Encoding.PEM))
|
||||
|
Loading…
Reference in New Issue
Block a user