fix 自定义hosts插件描述…

This commit is contained in:
thsrite
2023-10-25 16:52:19 +08:00
parent 8f8f3af7cd
commit 124817b733

View File

@ -145,6 +145,26 @@ class CustomHosts(_PluginBase):
]
}
]
},
{
'component': 'VRow',
'content': [
{
'component': 'VCol',
'props': {
'cols': 12,
},
'content': [
{
'component': 'VAlert',
'props': {
'text': 'host格式ip host中间有空格'
'容器运行则更新容器hosts非宿主机'
}
}
]
}
]
}
]
}
@ -211,7 +231,7 @@ class CustomHosts(_PluginBase):
# 添加新的Hosts
system_hosts.add(new_entrys)
system_hosts.write()
logger.info("更新系统hosts文件成功容器运行则更新容器hosts")
logger.info("更新系统hosts文件成功")
except Exception as err:
err_flag = True
logger.error(f"更新系统hosts文件失败{str(err) or '请检查权限'}")