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:
|
else:
|
||||||
status = verify_string(cert.body, "")
|
status = verify_string(cert.body, "")
|
||||||
|
|
||||||
cert.status = 'valid' if status else 'invalid'
|
cert.status = 'valid' if status else 'revoked'
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
current_app.logger.exception(e)
|
current_app.logger.exception(e)
|
||||||
|
|
|
@ -124,7 +124,7 @@ class CertificateNestedOutputSchema(LemurOutputSchema):
|
||||||
creator = fields.Nested(UserNestedOutputSchema)
|
creator = fields.Nested(UserNestedOutputSchema)
|
||||||
description = fields.String()
|
description = fields.String()
|
||||||
|
|
||||||
status = fields.Boolean()
|
status = fields.String()
|
||||||
|
|
||||||
bits = fields.Integer()
|
bits = fields.Integer()
|
||||||
body = fields.String()
|
body = fields.String()
|
||||||
|
@ -184,7 +184,7 @@ class CertificateOutputSchema(LemurOutputSchema):
|
||||||
serial_hex = Hex(attribute='serial')
|
serial_hex = Hex(attribute='serial')
|
||||||
signing_algorithm = fields.String()
|
signing_algorithm = fields.String()
|
||||||
|
|
||||||
status = fields.Boolean()
|
status = fields.String()
|
||||||
user = fields.Nested(UserNestedOutputSchema)
|
user = fields.Nested(UserNestedOutputSchema)
|
||||||
|
|
||||||
extensions = fields.Nested(ExtensionSchema)
|
extensions = fields.Nested(ExtensionSchema)
|
||||||
|
|
Loading…
Reference in New Issue