mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Make revocation_reason required when revoking a certificate.
This will prevent errors if an empty reason is provided and it is set by default one doesn't have to always set it on the command-line. https://fedorahosted.org/freeipa/ticket/2597
This commit is contained in:
committed by
Martin Kosek
parent
17a0738d2d
commit
51b34d5c42
@@ -526,7 +526,7 @@ class cert_revoke(VirtualCommand):
|
||||
|
||||
# FIXME: The default is 0. Is this really an Int param?
|
||||
takes_options = (
|
||||
Int('revocation_reason?',
|
||||
Int('revocation_reason',
|
||||
label=_('Reason'),
|
||||
doc=_('Reason for revoking the certificate (0-10)'),
|
||||
minvalue=0,
|
||||
|
||||
Reference in New Issue
Block a user