mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-09-03 20:52:56 -05:00
Updated ra plugins module to where it can at least be imported
This commit is contained in:
@@ -22,8 +22,7 @@
|
|||||||
Frontend plugins for IPA-RA PKI operations.
|
Frontend plugins for IPA-RA PKI operations.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from ipalib import api, Command, Param
|
from ipalib import api, Command, Str, Int
|
||||||
from ipalib import cli
|
|
||||||
|
|
||||||
|
|
||||||
class request_certificate(Command):
|
class request_certificate(Command):
|
||||||
@@ -31,7 +30,7 @@ class request_certificate(Command):
|
|||||||
|
|
||||||
takes_args = ['csr']
|
takes_args = ['csr']
|
||||||
|
|
||||||
takes_options = [Param('request_type?', default='pkcs10')]
|
takes_options = [Str('request_type?', default=u'pkcs10')]
|
||||||
|
|
||||||
def execute(self, csr, **options):
|
def execute(self, csr, **options):
|
||||||
return self.Backend.ra.request_certificate(csr, **options)
|
return self.Backend.ra.request_certificate(csr, **options)
|
||||||
@@ -85,7 +84,8 @@ class revoke_certificate(Command):
|
|||||||
|
|
||||||
takes_args = ['serial_number']
|
takes_args = ['serial_number']
|
||||||
|
|
||||||
takes_options = [Param('revocation_reason?', default=0)]
|
# FIXME: The default is 0. Is this really an Int param?
|
||||||
|
takes_options = [Int('revocation_reason?', default=0)]
|
||||||
|
|
||||||
|
|
||||||
def execute(self, serial_number, **options):
|
def execute(self, serial_number, **options):
|
||||||
@@ -115,5 +115,3 @@ class take_certificate_off_hold(Command):
|
|||||||
textui.print_plain('Failed to take a revoked certificate off hold.')
|
textui.print_plain('Failed to take a revoked certificate off hold.')
|
||||||
|
|
||||||
api.register(take_certificate_off_hold)
|
api.register(take_certificate_off_hold)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user