Fix a few issues introduced by the new Param.use_in_context() patch

This commit is contained in:
Rob Crittenden
2009-05-21 14:31:54 -04:00
parent 7e58b29a92
commit fe012f4ff2
2 changed files with 5 additions and 5 deletions

View File

@@ -428,7 +428,7 @@ class help(frontend.Command):
Display help for a command or topic. Display help for a command or topic.
""" """
takes_args = [Bytes('command?')] takes_args = (Bytes('command?'),)
_PLUGIN_BASE_MODULE = 'ipalib.plugins' _PLUGIN_BASE_MODULE = 'ipalib.plugins'

View File

@@ -109,7 +109,7 @@ class cert_status(Command):
Check status of a certificate signing request. Check status of a certificate signing request.
""" """
takes_args = ['request_id'] takes_args = ('request_id')
def execute(self, request_id, **kw): def execute(self, request_id, **kw):
@@ -129,7 +129,7 @@ class cert_get(Command):
Retrieve an existing certificate. Retrieve an existing certificate.
""" """
takes_args = ['serial_number'] takes_args = ('serial_number')
def execute(self, serial_number): def execute(self, serial_number):
return self.Backend.ra.get_certificate(serial_number) return self.Backend.ra.get_certificate(serial_number)
@@ -148,7 +148,7 @@ class cert_revoke(Command):
Revoke a certificate. Revoke a certificate.
""" """
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 = ( takes_options = (
@@ -178,7 +178,7 @@ class cert_remove_hold(Command):
Take a revoked certificate off hold. Take a revoked certificate off hold.
""" """
takes_args = ['serial_number'] takes_args = ('serial_number')
def execute(self, serial_number, **kw): def execute(self, serial_number, **kw):
return self.Backend.ra.take_certificate_off_hold(serial_number) return self.Backend.ra.take_certificate_off_hold(serial_number)