Autofill the default revocation reason

https://fedorahosted.org/freeipa/ticket/1514
This commit is contained in:
Rob Crittenden 2011-07-21 16:46:01 -04:00 committed by Martin Kosek
parent 506cbaa1fb
commit abb5ee22d2
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -536,6 +536,7 @@ class cert_revoke(VirtualCommand):
minvalue=0,
maxvalue=10,
default=0,
autofill=True
),
)