mirror of https://github.com/jumpserver/jumpserver
[Update] 修改配置文件判断
parent
c4af6fa72d
commit
2737675c36
|
@ -282,6 +282,10 @@ class Config(dict):
|
|||
if value is not None:
|
||||
if value.isdigit():
|
||||
value = int(value)
|
||||
elif value.lower() == 'false':
|
||||
value = False
|
||||
elif value.lower() == 'true':
|
||||
value = True
|
||||
return value
|
||||
return self.defaults.get(item)
|
||||
|
||||
|
|
Loading…
Reference in New Issue