[#2705] [WebUI] Fix hostlist not being created

This commit is contained in:
Calum Lind 2015-09-24 23:32:24 +01:00
parent 697c22a46c
commit e1dcf378c3
1 changed files with 2 additions and 0 deletions

View File

@ -428,6 +428,8 @@ class WebApi(JSONComponent):
def __init__(self):
super(WebApi, self).__init__("Web", depend=["SessionProxy"])
self.host_list = ConfigManager("hostlist.conf.1.2", DEFAULT_HOSTS)
if not os.path.isfile(self.host_list.config_file):
self.host_list.save()
self.core_config = CoreConfig()
self.event_queue = EventQueue()
try: