-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 解决工具箱 Hosts 解析失败的问题 #3501
fix: 解决工具箱 Hosts 解析失败的问题 #3501
Conversation
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -353,7 +353,7 @@ func loadHosts() []dto.HostHelper { | |||
lines := strings.Split(string(hostConf), "\n") | |||
for _, line := range lines { | |||
parts := strings.Fields(line) | |||
if len(parts) < 2 { | |||
if len(parts) < 2 || strings.HasPrefix(strings.TrimPrefix(line, " "), "#") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
右侧抽屉顶部增加提示信息:
"隐藏了已注释的记录,请点击 全部配置
按钮以查看或设置。"
01157f8
to
58cde0b
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wanghe-fit2cloud The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Refs #3497