update to 6.8.27

This commit is contained in:
aaPanel
2022-12-16 10:40:55 +08:00
parent d2a66661db
commit 7dcaa2b5ce
148 changed files with 22281 additions and 13876 deletions
+9 -3
View File
@@ -27,8 +27,11 @@ class tomcat:
self.__ENGINE = self.__TREE.findall('Service/Engine')[0];
#获取虚拟主机列表
def GetVhosts(self):
Hosts = self.__ENGINE.getchildren();
def GetVhosts(self):
try:
Hosts = self.__ENGINE.getchildren()
except:
Hosts = list(self.__ENGINE)
data = []
for host in Hosts:
if host.tag != 'Host': continue;
@@ -63,7 +66,10 @@ class tomcat:
#获取指定虚拟主机
def GetVhost(self,name):
Hosts = self.__ENGINE.getchildren();
try:
Hosts = self.__ENGINE.getchildren()
except:
Hosts = list(self.__ENGINE)
for host in Hosts:
if host.tag != 'Host': continue;
if host.attrib['name'] == name: