diff options
-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 = {} |