Fix for status representation in the view (#778)

This commit is contained in:
Michael Treacher 2017-05-06 04:04:40 +10:00 committed by kevgliss
parent 9c9ca37586
commit ce5a45037a
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)