2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-18 05:33:17 +00:00

Use correct exception params on manual policy

In the rework of the exception to include full certificate
in body, a call was missed in the verify_cert() routine.
This commit is contained in:
Jarrod Johnson 2015-12-01 09:11:08 -05:00
parent e2b79a063d
commit 89edc020d5

View File

@ -81,7 +81,8 @@ class TLSCertVerifier(object):
# manual policy means always raise unless a match is set
# manually
raise cexc.PubkeyInvalid('New certificate detected',
fingerprint, self.fieldname)
certificate, fingerprint,
self.fieldname)
# since the policy is not manual, go ahead and add new key
# after logging to audit log
auditlog = log.Logger('audit')