mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -150,9 +150,11 @@ class App():
|
|||||||
info_file = self.__host_dir + '/' + name + '/info.json'
|
info_file = self.__host_dir + '/' + name + '/info.json'
|
||||||
if not os.path.exists(info_file):
|
if not os.path.exists(info_file):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
host_info = {}
|
||||||
try:
|
try:
|
||||||
info_tmp = self.getSshInfo(info_file)
|
info_tmp = self.getSshInfo(info_file)
|
||||||
host_info = {}
|
|
||||||
host_info['host'] = name
|
host_info['host'] = name
|
||||||
host_info['port'] = info_tmp['port']
|
host_info['port'] = info_tmp['port']
|
||||||
host_info['ps'] = info_tmp['ps']
|
host_info['ps'] = info_tmp['ps']
|
||||||
|
|||||||
Reference in New Issue
Block a user