diff options
author | Nathaniel McCallum <npmccallum@redhat.com> | 2014-06-10 11:27:51 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-06-11 09:24:22 +0200 |
commit | 255cbb49763ff579feed935a5a725fc2b272749c (patch) | |
tree | 81acc8ce7bb59536498f993ff6c67a105fb49e7b /ipalib/plugins/batch.py | |
parent | 47d8fec92f65833e157adb0ea136e14e1fa4cde3 (diff) | |
download | freeipa-255cbb49763ff579feed935a5a725fc2b272749c.tar.gz freeipa-255cbb49763ff579feed935a5a725fc2b272749c.tar.xz freeipa-255cbb49763ff579feed935a5a725fc2b272749c.zip |
Update all remaining plugins to the new Registry API
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Diffstat (limited to 'ipalib/plugins/batch.py')
-rw-r--r-- | ipalib/plugins/batch.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipalib/plugins/batch.py b/ipalib/plugins/batch.py index 5fd5943f6..2002eef88 100644 --- a/ipalib/plugins/batch.py +++ b/ipalib/plugins/batch.py @@ -52,8 +52,12 @@ from ipalib.output import Output from ipalib import output from ipalib.text import _ from ipalib.request import context +from ipalib.plugable import Registry from ipapython.version import API_VERSION +register = Registry() + +@register() class batch(Command): NO_CLI = True @@ -124,4 +128,3 @@ class batch(Command): results.append(result) return dict(count=len(results) , results=results) -api.register(batch) |