summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-07-21 16:46:01 -0400
committerMartin Kosek <mkosek@redhat.com>2011-07-22 08:57:31 +0200
commitabb5ee22d2c842b8ba1f68ce4d2ec47c306448aa (patch)
treed54e746bd4899a16ed96c4d798383cbdb7e5a9b1
parent506cbaa1fb24c9c5afd091582de0af1c44cc33ea (diff)
downloadfreeipa-abb5ee22d2c842b8ba1f68ce4d2ec47c306448aa.tar.gz
freeipa-abb5ee22d2c842b8ba1f68ce4d2ec47c306448aa.tar.xz
freeipa-abb5ee22d2c842b8ba1f68ce4d2ec47c306448aa.zip
Autofill the default revocation reason
https://fedorahosted.org/freeipa/ticket/1514
-rw-r--r--API.txt2
-rw-r--r--ipalib/plugins/cert.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/API.txt b/API.txt
index 0ceb3a757..42a212b1e 100644
--- a/API.txt
+++ b/API.txt
@@ -315,7 +315,7 @@ output: Output('result', <type 'dict'>, Gettext('Dictionary mapping variable nam
command: cert_revoke
args: 1,1,1
arg: Str('serial_number', validate_serial_number, label=Gettext('Serial number', domain='ipa', localedir=None), normalizer=normalize_serial_number)
-option: Int('revocation_reason?', default=0, label=Gettext('Reason', domain='ipa', localedir=None), maxvalue=10, minvalue=0)
+option: Int('revocation_reason?', autofill=True, default=0, label=Gettext('Reason', domain='ipa', localedir=None), maxvalue=10, minvalue=0)
output: Output('result', None, None)
command: cert_show
args: 1,1,1
diff --git a/ipalib/plugins/cert.py b/ipalib/plugins/cert.py
index 643e1cdd2..2c8ab4992 100644
--- a/ipalib/plugins/cert.py
+++ b/ipalib/plugins/cert.py
@@ -536,6 +536,7 @@ class cert_revoke(VirtualCommand):
minvalue=0,
maxvalue=10,
default=0,
+ autofill=True
),
)