summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipalib/plugins/cert.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/ipalib/plugins/cert.py b/ipalib/plugins/cert.py
index 01d3266b9..cd6e31893 100644
--- a/ipalib/plugins/cert.py
+++ b/ipalib/plugins/cert.py
@@ -151,7 +151,14 @@ class cert_revoke(Command):
takes_args = ['serial_number']
# FIXME: The default is 0. Is this really an Int param?
- takes_options = [Int('revocation_reason?', default=0)]
+ takes_options = (
+ Int('revocation_reason?',
+ doc='Reason for revoking the certificate (0-10)',
+ minvalue=0,
+ maxvalue=10,
+ default=0,
+ ),
+ )
def execute(self, serial_number, **kw):