summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-05-08 14:10:53 -0400
committerRob Crittenden <rcritten@redhat.com>2009-05-13 14:17:03 -0400
commit014f3ff1c63eeff6d6bc36cbdce7f082676d6925 (patch)
treefd0ac311f12c52b49aa1ff7c2c6d0447f5c8545e
parent1c31b5bc08a2f4bc55678c69eb67508122480906 (diff)
downloadfreeipa-014f3ff1c63eeff6d6bc36cbdce7f082676d6925.tar.gz
freeipa-014f3ff1c63eeff6d6bc36cbdce7f082676d6925.tar.xz
freeipa-014f3ff1c63eeff6d6bc36cbdce7f082676d6925.zip
Improve revocation_reason argument
-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):