summaryrefslogtreecommitdiffstats
path: root/ipalib/__init__.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2015-02-16 16:34:01 +0000
committerTomas Babej <tbabej@redhat.com>2015-03-05 11:01:36 +0100
commit2625efa727822addbaa469dbf5c680b0f62c43da (patch)
tree4b2793e9ba7a03838c6aa12630dc1ce66a757ddc /ipalib/__init__.py
parentdae6a1881354e57b58c79ffea0a75f524286855e (diff)
downloadfreeipa-2625efa727822addbaa469dbf5c680b0f62c43da.tar.gz
freeipa-2625efa727822addbaa469dbf5c680b0f62c43da.tar.xz
freeipa-2625efa727822addbaa469dbf5c680b0f62c43da.zip
advise: Add separate API object for ipa-advise
Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'ipalib/__init__.py')
-rw-r--r--ipalib/__init__.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/ipalib/__init__.py b/ipalib/__init__.py
index 381f38162..0b587904f 100644
--- a/ipalib/__init__.py
+++ b/ipalib/__init__.py
@@ -882,7 +882,7 @@ freeIPA.org:
import os
import plugable
from backend import Backend
-from frontend import Command, LocalOrRemote, Updater, Advice
+from frontend import Command, LocalOrRemote, Updater
from frontend import Object, Method
from crud import Create, Retrieve, Update, Delete, Search
from parameters import DefaultFrom, Bool, Flag, Int, Decimal, Bytes, Str, IA5Str, Password, DNParam, DeprecatedParam
@@ -909,8 +909,6 @@ class API(plugable.API):
self.packages.append('ipaserver')
if self.env.context in ('installer', 'updates'):
self.packages.append('ipaserver/install/plugins')
- if self.env.context in ('advise',):
- self.packages.append('ipaserver/advise/plugins')
def create_api(mode='dummy'):
@@ -926,11 +924,9 @@ def create_api(mode='dummy'):
- `frontend.Method`
- - `frontend.Advice`
-
- `backend.Backend`
"""
- api = API((Command, Object, Method, Backend, Updater, Advice))
+ api = API((Command, Object, Method, Backend, Updater))
if mode is not None:
api.env.mode = mode
assert mode != 'production'