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 authored and Martin Kosek committed 2012-04-05 08:51:30 +02:00
1 parent 17a0738d2d
commit 51b34d5c42
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -433,7 +433,7 @@ output: Output('result', <type 'dict'>, None)
command: cert_revoke
args: 1,1,1
arg: Str('serial_number')
option: Int('revocation_reason?', autofill=True, default=0, maxvalue=10, minvalue=0)
option: Int('revocation_reason', autofill=True, default=0, maxvalue=10, minvalue=0)
output: Output('result', None, None)
command: cert_show
args: 1,1,1
+1 -1
View File
@@ -79,4 +79,4 @@ IPA_DATA_VERSION=20100614120000
# #
########################################################
IPA_API_VERSION_MAJOR=2
IPA_API_VERSION_MINOR=32
IPA_API_VERSION_MINOR=33
+1 -1
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,