提交 46b84feb 编写于 作者: H hjdhnx

bug fixed

上级 806a20f7
......@@ -52,7 +52,7 @@ class storage_service(object):
@classmethod
def getItem(self, key, value=''):
res = Storage.getItem(key,value)
if not str(res) or str(res) == '0' or str(res) == 'false' or str(res) == 'False':
if str(res) == '0' or str(res) == 'false' or str(res) == 'False':
return 0
return res
......
3.6.10
\ No newline at end of file
3.6.11
\ No newline at end of file
......@@ -107,9 +107,9 @@ def getCustonDict(host):
def get_multi_rules(rules):
lsg = storage_service()
multi_mode = lsg.getItem('MULTI_MODE')
multi_mode = lsg.getItem('MULTI_MODE',0)
fix_multi = ['drpy']
if not multi_mode:
if not multi_mode or str(multi_mode)=='0':
rules['list'] = list(filter(lambda x: x['name'] in fix_multi or x.get('multi'), rules['list']))
rules['count'] = len(rules['list'])
# print(rules)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册