1.面板版本Beta[url=]7.9.74 和7.9.7均已测试,都存在问题。[/url]AttributeError: 'list' object has no attribute 'replace'
2.操作系统版本
x86_64
CentOS Linux release 7.9.2009 (Core)
3.浏览器版本
google chrome 100.0.4896.127
4、错误信息
复现流程:在菜单“docker”——“设置”——“加速url”,
修改url,会报错:
REQUEST_DATE: 2023-01-22 15:56:39
PAN_VERSION: 7.9.74
OS_VERSION: CentOS 7.9.2009 x86_64(Py3.7.9)
REMOTE_ADDR: 222.90.221.218
REQUEST_URI: POST /project/docker/model?action=setup-set_registry_mirrors
REQUEST_FORM: {'data': '{"registry_mirrors_address":"https://0bk8w8t9.mirror.aliyuncs.com","url":"unix:///var/run/docker.sock","dk_model_name":"setup","dk_def_name":"set_registry_mirrors"}'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 1984, in publicObject
return run_exec().run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 1932, in run
result = getattr(toObject, get.action)(get)
File "class/panelController.py", line 86, in model
raise public.PanelError(result['msg'])
public.PanelError: 面板运行时发生错误: 设置失败!失败原因:Traceback (most recent call last):
File "/www/server/panel/class/projectModel/bt_docker/dk_setup.py", line 130, in set_registry_mirrors
conf['registry-mirrors'] = public.xsssec2(registry_mirrors)
File "class/public.py", line 1669, in xsssec2
return text.replace('<', '<').replace('>', '>')
AttributeError: 'list' object has no attribute 'replace'
|
|