mirror of
https://github.com/openkmip/pykmip
synced 2025-12-26 21:23:44 +00:00
Rename the CertificateTypeEnum enum to CertificateType
This change renames the CertificateTypeEnum enumeration to CertificateType, matching the naming schemes of all other enumerations. This is a backwards incompatible change and will break any scripts or programs that use the current CertificateTypeEnum name.
This commit is contained in:
@@ -75,7 +75,7 @@ class ObjectFactory:
|
||||
certificate_type = cert.certificate_type.value
|
||||
value = cert.certificate_value.value
|
||||
|
||||
if certificate_type == enums.CertificateTypeEnum.X_509:
|
||||
if certificate_type == enums.CertificateType.X_509:
|
||||
return pobjects.X509Certificate(value)
|
||||
else:
|
||||
raise TypeError("core certificate type not supported")
|
||||
|
||||
Reference in New Issue
Block a user