From d44ffdad4285bf2a1c0b044e07ef1b18c7d50de1 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 14 Jun 2016 06:29:18 +0200 Subject: cert: add object plugin Implement cert as an object with methods rather than a bunch of loosely related commands. https://fedorahosted.org/freeipa/ticket/5381 Reviewed-By: David Kupka Reviewed-By: Pavel Vomacka --- ipaclient/plugins/cert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipaclient/plugins') diff --git a/ipaclient/plugins/cert.py b/ipaclient/plugins/cert.py index 1b840ace9..7e8e15662 100644 --- a/ipaclient/plugins/cert.py +++ b/ipaclient/plugins/cert.py @@ -19,7 +19,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from ipaclient.frontend import CommandOverride +from ipaclient.frontend import MethodOverride from ipalib import errors from ipalib import x509 from ipalib import util @@ -30,7 +30,7 @@ register = Registry() @register(override=True) -class cert_request(CommandOverride): +class cert_request(MethodOverride): def get_args(self): for arg in super(cert_request, self).get_args(): if arg.name == 'csr': @@ -39,7 +39,7 @@ class cert_request(CommandOverride): @register(override=True) -class cert_show(CommandOverride): +class cert_show(MethodOverride): def forward(self, *keys, **options): if 'out' in options: util.check_writable_file(options['out']) -- cgit