summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-01-14 22:29:59 -0700
committerJason Gerard DeRose <jderose@redhat.com>2009-01-14 22:29:59 -0700
commit86b7ebf717a99276a135a5888246cee99798a94b (patch)
treee5d3f4a9ea526f4ae3af66111428a489845240a8
parenta41a7f406f5e5192ed7a8c1b05c76de1826f0d7b (diff)
downloadfreeipa-86b7ebf717a99276a135a5888246cee99798a94b.tar.gz
freeipa-86b7ebf717a99276a135a5888246cee99798a94b.tar.xz
freeipa-86b7ebf717a99276a135a5888246cee99798a94b.zip
Updated ra plugins module to where it can at least be imported
-rw-r--r--ipalib/plugins/f_ra.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/ipalib/plugins/f_ra.py b/ipalib/plugins/f_ra.py
index 724cbf5e6..7ac84e65f 100644
--- a/ipalib/plugins/f_ra.py
+++ b/ipalib/plugins/f_ra.py
@@ -22,8 +22,7 @@
Frontend plugins for IPA-RA PKI operations.
"""
-from ipalib import api, Command, Param
-from ipalib import cli
+from ipalib import api, Command, Str, Int
class request_certificate(Command):
@@ -31,7 +30,7 @@ class request_certificate(Command):
takes_args = ['csr']
- takes_options = [Param('request_type?', default='pkcs10')]
+ takes_options = [Str('request_type?', default=u'pkcs10')]
def execute(self, csr, **options):
return self.Backend.ra.request_certificate(csr, **options)
@@ -85,7 +84,8 @@ class revoke_certificate(Command):
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):
@@ -115,5 +115,3 @@ class take_certificate_off_hold(Command):
textui.print_plain('Failed to take a revoked certificate off hold.')
api.register(take_certificate_off_hold)
-
-