summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorKen Raffenetti <raffenet@mcs.anl.gov>2006-09-05 19:10:17 +0000
committerKen Raffenetti <raffenet@mcs.anl.gov>2006-09-05 19:10:17 +0000
commit1b00ab7e2dd60b7b4997ee08bcb7451e4fcc2d66 (patch)
treeb06703c15b0d24b87b1e19253ea268af1a2954db /src/lib
parent7a0b9dc36a3573c6122d5dd885db1faca703b580 (diff)
downloadbcfg2-1b00ab7e2dd60b7b4997ee08bcb7451e4fcc2d66.tar.gz
bcfg2-1b00ab7e2dd60b7b4997ee08bcb7451e4fcc2d66.tar.bz2
bcfg2-1b00ab7e2dd60b7b4997ee08bcb7451e4fcc2d66.zip
settings for django added
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2212 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/Hostbase.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Hostbase.py b/src/lib/Server/Plugins/Hostbase.py
index 51bd2c536..4e7cdfdfa 100644
--- a/src/lib/Server/Plugins/Hostbase.py
+++ b/src/lib/Server/Plugins/Hostbase.py
@@ -4,6 +4,8 @@ __revision__ = '$Revision$'
from lxml.etree import Element, SubElement
from django.db import connection
from syslog import syslog, LOG_INFO
+sys.path.append("/disks/bcfg2/Hostbase")
+os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from Cheetah.Template import Template
from Bcfg2.Server.Plugin import Plugin, PluginExecutionError, PluginInitError, DirectoryBacked
from time import strftime
@@ -153,7 +155,6 @@ class Hostbase(Plugin):
""" % zone[1]
cursor.execute(querystring)
zonehosts = cursor.fetchall()
-## hosts[zone[1]] = zonehosts
prevhost = (None, None, None, None)
for host in zonehosts:
if not host[0].split(".", 1)[1] == zone[1]: