diff options
author | Rick Bradshow <bradshaw@mcs.anl.gov> | 2008-10-16 16:06:53 +0000 |
---|---|---|
committer | Rick Bradshow <bradshaw@mcs.anl.gov> | 2008-10-16 16:06:53 +0000 |
commit | 304df77ae9402deb0fd71095234ae7d214be7d67 (patch) | |
tree | 2991efafc4750518f3ae0f21a39b285f036168d0 | |
parent | 6dd06ce483a576ee172e0f0e89b3e5d2d93595a5 (diff) | |
download | bcfg2-304df77ae9402deb0fd71095234ae7d214be7d67.tar.gz bcfg2-304df77ae9402deb0fd71095234ae7d214be7d67.tar.bz2 bcfg2-304df77ae9402deb0fd71095234ae7d214be7d67.zip |
updated for new Plugin API
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4947 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Server/Plugins/Hostbase.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Server/Plugins/Hostbase.py b/src/lib/Server/Plugins/Hostbase.py index 05840f218..f04d64e7c 100644 --- a/src/lib/Server/Plugins/Hostbase.py +++ b/src/lib/Server/Plugins/Hostbase.py @@ -5,7 +5,7 @@ import sys, os os.environ['DJANGO_SETTINGS_MODULE'] = 'Bcfg2.Server.Hostbase.settings' from lxml.etree import Element, SubElement from syslog import syslog, LOG_INFO -from Bcfg2.Server.Plugin import StructurePlugin, PluginExecutionError, PluginInitError, DirectoryBacked +from Bcfg2.Server.Plugin import StructurePlugin, PluginExecutionError, PluginInitError, DirectoryBacked, GeneratorPlugin from time import strftime from sets import Set from django.template import Context, loader @@ -37,7 +37,7 @@ import cStringIO ## '''This function is called when underlying data has changed''' ## pass -class Hostbase(StructurePlugin): +class Hostbase(StructurePlugin,GeneratorPlugin): '''The Hostbase plugin handles host/network info''' __name__ = 'Hostbase' __version__ = '$Id$' @@ -47,7 +47,7 @@ class Hostbase(StructurePlugin): def __init__(self, core, datastore): self.ready = False - Plugin.__init__(self, core, datastore) + StructurePlugin.__init__(self, core, datastore) files = ['zone.tmpl', 'reversesoa.tmpl', 'named.tmpl', 'reverseappend.tmpl', 'dhcpd.tmpl', 'hosts.tmpl', 'hostsappend.tmpl'] ## try: |