diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-07-21 16:46:01 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-07-22 08:57:31 +0200 |
commit | abb5ee22d2c842b8ba1f68ce4d2ec47c306448aa (patch) | |
tree | d54e746bd4899a16ed96c4d798383cbdb7e5a9b1 | |
parent | 506cbaa1fb24c9c5afd091582de0af1c44cc33ea (diff) | |
download | freeipa-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.txt | 2 | ||||
-rw-r--r-- | ipalib/plugins/cert.py | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -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 ), ) |