Merge "When we failed to load pkcs12 cert print warning"
This commit is contained in:
commit
2b8af0dc62
|
@ -120,7 +120,10 @@ class BarbicanCertManager(cert_mgr.CertManager):
|
||||||
return pkcs12.PKCS12Cert(cert_secret.payload)
|
return pkcs12.PKCS12Cert(cert_secret.payload)
|
||||||
except exceptions.UnreadablePKCS12:
|
except exceptions.UnreadablePKCS12:
|
||||||
raise
|
raise
|
||||||
except Exception:
|
except Exception as e:
|
||||||
|
LOG.warning('Failed to load PKCS12Cert for secret %s with %s',
|
||||||
|
cert_ref, str(e))
|
||||||
|
LOG.warning('Falling back to the barbican_legacy implementation.')
|
||||||
# If our get fails, try with the legacy driver.
|
# If our get fails, try with the legacy driver.
|
||||||
# TODO(rm_work): Remove this code when the deprecation cycle for
|
# TODO(rm_work): Remove this code when the deprecation cycle for
|
||||||
# the legacy driver is complete.
|
# the legacy driver is complete.
|
||||||
|
|
Loading…
Reference in New Issue