summaryrefslogtreecommitdiffstats
path: root/ipaclient/plugins
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-06-14 06:29:18 +0200
committerJan Cholasta <jcholast@redhat.com>2016-06-21 09:45:20 +0200
commitd44ffdad4285bf2a1c0b044e07ef1b18c7d50de1 (patch)
treeeab47f31cd405f88fa8f1b753f622b0d09707c3e /ipaclient/plugins
parentb484667d15932cd4a7e03a3a2c1135e7500eee4b (diff)
downloadfreeipa-d44ffdad4285bf2a1c0b044e07ef1b18c7d50de1.tar.gz
freeipa-d44ffdad4285bf2a1c0b044e07ef1b18c7d50de1.tar.xz
freeipa-d44ffdad4285bf2a1c0b044e07ef1b18c7d50de1.zip
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 <dkupka@redhat.com> Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
Diffstat (limited to 'ipaclient/plugins')
-rw-r--r--ipaclient/plugins/cert.py6
1 files changed, 3 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
-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'])