From 480bd154c6a9d455e226d50ffad9275ed110b5e1 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 26 Aug 2023 17:21:20 +0800 Subject: [PATCH] Update index.py --- plugins/webssh/index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/webssh/index.py b/plugins/webssh/index.py index 678f4cc85..2312d8f18 100755 --- a/plugins/webssh/index.py +++ b/plugins/webssh/index.py @@ -150,9 +150,11 @@ class App(): info_file = self.__host_dir + '/' + name + '/info.json' if not os.path.exists(info_file): continue + + host_info = {} try: info_tmp = self.getSshInfo(info_file) - host_info = {} + host_info['host'] = name host_info['port'] = info_tmp['port'] host_info['ps'] = info_tmp['ps']