mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Improve revocation_reason argument
This commit is contained in:
parent
1c31b5bc08
commit
014f3ff1c6
@ -151,7 +151,14 @@ class cert_revoke(Command):
|
|||||||
takes_args = ['serial_number']
|
takes_args = ['serial_number']
|
||||||
|
|
||||||
# FIXME: The default is 0. Is this really an Int param?
|
# 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):
|
def execute(self, serial_number, **kw):
|
||||||
|
Loading…
Reference in New Issue
Block a user