From 7dfd1ec10cad6da7d78052b9bfff723026e53417 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 6 Oct 2005 15:05:23 +0000 Subject: fix import problem and add comment (Logical change 1.334) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1367 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Plugins/Vhost.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/Server/Plugins/Vhost.py b/src/lib/Server/Plugins/Vhost.py index 44a0bc16d..b7a0c6a66 100644 --- a/src/lib/Server/Plugins/Vhost.py +++ b/src/lib/Server/Plugins/Vhost.py @@ -18,8 +18,7 @@ import base64 from copy import deepcopy from elementtree.ElementTree import XML, Element, SubElement from socket import gethostbyname -from Bcfg2.Server.Generator import SingleXMLFileBacked -from Bcfg2.Server.Plugin import Plugin, PluginExecutionError +from Bcfg2.Server.Plugin import Plugin, PluginExecutionError, SingleXMLFileBacked class VhostFile(SingleXMLFileBacked): '''The Vhost file contains webserver vhost configuration elements''' @@ -35,6 +34,7 @@ class VhostFile(SingleXMLFileBacked): self.vhosts = {} def Index(self): + '''Build vhost data structures''' self.meta = XML(self.data) self.servers = [serv.get('name') for serv in self.meta.findall('server')] self.vhosts = {} -- cgit v1.2.3-1-g7c22