mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-17 15:59:04 +00:00
fix disk detail bug
This commit is contained in:
@@ -13,7 +13,7 @@ password = mysql234
|
||||
database = jumpserver
|
||||
|
||||
[websocket]
|
||||
web_socket_host = j:3000
|
||||
web_socket_host = js:3000
|
||||
|
||||
[mail]
|
||||
mail_enable = 1
|
||||
|
@@ -209,7 +209,11 @@ def str_to_dic(info):
|
||||
"""
|
||||
str to list
|
||||
"""
|
||||
return ast.literal_eval(info).iteritems()
|
||||
if '{' in info:
|
||||
info_dic = ast.literal_eval(info).iteritems()
|
||||
else:
|
||||
info_dic = {}
|
||||
return info_dic
|
||||
|
||||
|
||||
@register.filter(name='str_to_code')
|
||||
|
@@ -96,15 +96,15 @@
|
||||
<div class="hr-line-dashed"></div>
|
||||
{{ af.memory|bootstrap_horizontal }}
|
||||
|
||||
<div class="hr-line-dashed"></div>
|
||||
{{ af.disk|bootstrap_horizontal }}
|
||||
|
||||
<div class="hr-line-dashed"></div>
|
||||
{{ af.system_type|bootstrap_horizontal }}
|
||||
|
||||
<div class="hr-line-dashed"></div>
|
||||
{{ af.system_version|bootstrap_horizontal }}
|
||||
|
||||
<div class="hr-line-dashed"></div>
|
||||
{{ af.disk|bootstrap_horizontal }}
|
||||
|
||||
<div class="hr-line-dashed"></div>
|
||||
{{ af.number|bootstrap_horizontal }}
|
||||
|
||||
|
Reference in New Issue
Block a user