Fix for status representation in the view (#778)
This commit is contained in:
parent
9c9ca37586
commit
ce5a45037a
@ -227,7 +227,7 @@ def check_revoked():
|
||||
else:
|
||||
status = verify_string(cert.body, "")
|
||||
|
||||
cert.status = 'valid' if status else 'invalid'
|
||||
cert.status = 'valid' if status else 'revoked'
|
||||
|
||||
except Exception as e:
|
||||
current_app.logger.exception(e)
|
||||
|
@ -124,7 +124,7 @@ class CertificateNestedOutputSchema(LemurOutputSchema):
|
||||
creator = fields.Nested(UserNestedOutputSchema)
|
||||
description = fields.String()
|
||||
|
||||
status = fields.Boolean()
|
||||
status = fields.String()
|
||||
|
||||
bits = fields.Integer()
|
||||
body = fields.String()
|
||||
@ -184,7 +184,7 @@ class CertificateOutputSchema(LemurOutputSchema):
|
||||
serial_hex = Hex(attribute='serial')
|
||||
signing_algorithm = fields.String()
|
||||
|
||||
status = fields.Boolean()
|
||||
status = fields.String()
|
||||
user = fields.Nested(UserNestedOutputSchema)
|
||||
|
||||
extensions = fields.Nested(ExtensionSchema)
|
||||
|
Loading…
Reference in New Issue
Block a user