summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/host.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-12-10 17:01:14 -0500
committerSimo Sorce <ssorce@redhat.com>2010-12-11 12:50:17 -0500
commitbe3c8e8c02bf98c349b67d25cfebb3e86d3f227e (patch)
tree175358a1a8c07f51a93e35b237fe685f4003df0d /ipalib/plugins/host.py
parent33860ebb43bb23e8abc9d5b5d36ec341ddf4a413 (diff)
downloadfreeipa-be3c8e8c02bf98c349b67d25cfebb3e86d3f227e.tar.gz
freeipa-be3c8e8c02bf98c349b67d25cfebb3e86d3f227e.tar.xz
freeipa-be3c8e8c02bf98c349b67d25cfebb3e86d3f227e.zip
Don't import from ipaserver when not in a server context.
ticket 579
Diffstat (limited to 'ipalib/plugins/host.py')
-rw-r--r--ipalib/plugins/host.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py
index 437b7d52f..a823fe001 100644
--- a/ipalib/plugins/host.py
+++ b/ipalib/plugins/host.py
@@ -86,7 +86,8 @@ from ipalib import _, ngettext
from ipalib import x509
from ipapython.ipautil import ipa_generate_password
from ipalib.request import context
-from ipaserver.install.bindinstance import get_reverse_zone
+if api.env.context in ['lite', 'server']:
+ from ipaserver.install.bindinstance import get_reverse_zone
import base64
import nss.nss as nss