diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-10-06 15:05:23 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-10-06 15:05:23 +0000 |
commit | 7dfd1ec10cad6da7d78052b9bfff723026e53417 (patch) | |
tree | eb9dbffe8d15538500c4ac1b271e42cd6594f5fb /src/lib/Server/Plugins/Vhost.py | |
parent | adb6d042d4a8c73c39524dd5a2daa6ca7693ca55 (diff) | |
download | bcfg2-7dfd1ec10cad6da7d78052b9bfff723026e53417.tar.gz bcfg2-7dfd1ec10cad6da7d78052b9bfff723026e53417.tar.bz2 bcfg2-7dfd1ec10cad6da7d78052b9bfff723026e53417.zip |
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
Diffstat (limited to 'src/lib/Server/Plugins/Vhost.py')
-rw-r--r-- | src/lib/Server/Plugins/Vhost.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 = {} |