From 51b34d5c4249e540510993fe600d222f22fcda16 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 4 Apr 2012 14:57:22 -0400 Subject: 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 --- ipalib/plugins/cert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib') diff --git a/ipalib/plugins/cert.py b/ipalib/plugins/cert.py index 7a3888121..75eace246 100644 --- a/ipalib/plugins/cert.py +++ b/ipalib/plugins/cert.py @@ -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, -- cgit