Make revocation_reason required when revoking a certificate.

This will prevent errors if an empty reason is provided and it is
set by default one doesn't have to always set it on the command-line.

https://fedorahosted.org/freeipa/ticket/2597
This commit is contained in:
Rob Crittenden
2012-04-04 14:57:22 -04:00
committed by Martin Kosek
parent 17a0738d2d
commit 51b34d5c42
3 changed files with 3 additions and 3 deletions

View File

@@ -526,7 +526,7 @@ class cert_revoke(VirtualCommand):
# FIXME: The default is 0. Is this really an Int param?
takes_options = (
Int('revocation_reason?',
Int('revocation_reason',
label=_('Reason'),
doc=_('Reason for revoking the certificate (0-10)'),
minvalue=0,