mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-20 02:51:27 +00:00
perf: 优化支持 自定义 applet
perf: 优化平台
This commit is contained in:
@@ -98,7 +98,7 @@ class Applet(JMSBaseModel):
|
||||
return
|
||||
try:
|
||||
with open(os.path.join(d, 'platform.yml')) as f:
|
||||
data = yaml.safe_load(f)
|
||||
data = yaml_load_with_i18n(f)
|
||||
except Exception as e:
|
||||
raise ValidationError({'error': _('Load platform.yml failed: {}').format(e)})
|
||||
|
||||
|
Reference in New Issue
Block a user