summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
authorKen Raffenetti <raffenet@mcs.anl.gov>2006-11-10 16:03:42 +0000
committerKen Raffenetti <raffenet@mcs.anl.gov>2006-11-10 16:03:42 +0000
commitfe13c5f640bae13e0479929810366963da0f191a (patch)
treefe2864df1ed7a6b978555da0651a18aa6705786e /src/lib/Server
parent2ce370ceda0827b47d976bf388892b34d1117b5e (diff)
downloadbcfg2-fe13c5f640bae13e0479929810366963da0f191a.tar.gz
bcfg2-fe13c5f640bae13e0479929810366963da0f191a.tar.bz2
bcfg2-fe13c5f640bae13e0479929810366963da0f191a.zip
fixed bug in Hostbase plugin
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2479 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Plugins/Hostbase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Hostbase.py b/src/lib/Server/Plugins/Hostbase.py
index d217b723e..80afa0c06 100644
--- a/src/lib/Server/Plugins/Hostbase.py
+++ b/src/lib/Server/Plugins/Hostbase.py
@@ -2,6 +2,7 @@
__revision__ = '$Revision$'
import sys, os
+os.environ['DJANGO_SETTINGS_MODULE'] = 'Hostbase.settings'
from lxml.etree import Element, SubElement
from syslog import syslog, LOG_INFO
from Bcfg2.Server.Plugin import Plugin, PluginExecutionError, PluginInitError, DirectoryBacked
@@ -48,7 +49,6 @@ class Hostbase(Plugin):
Plugin.__init__(self, core, datastore)
files = ['zone.tmpl', 'reversesoa.tmpl', 'named.tmpl', 'reverseappend.tmpl',
'dhcpd.tmpl', 'hosts.tmpl', 'hostsappend.tmpl']
- os.environ['DJANGO_SETTINGS_MODULE'] = 'Hostbase.settings'
## try:
## self.repository = DataNexus(self.data + '/templates/',
## files, self.core.fam)