Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
760c563c
Commit
760c563c
authored
Jun 10, 2016
by
Piotr Szczesniak
Committed by
GitHub
Jun 10, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #27123 from jszczepkowski/hpa-e2e-fix3
Fixed GetGroupNodes method: wrong regexp function was used.
parents
4793372a
f445d414
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
resize_nodes.go
test/e2e/resize_nodes.go
+1
-1
No files found.
test/e2e/resize_nodes.go
View file @
760c563c
...
@@ -87,7 +87,7 @@ func GetGroupNodes(group string) ([]string, error) {
...
@@ -87,7 +87,7 @@ func GetGroupNodes(group string) ([]string, error) {
return
nil
,
err
return
nil
,
err
}
}
re
:=
regexp
.
MustCompile
(
".*RUNNING"
)
re
:=
regexp
.
MustCompile
(
".*RUNNING"
)
lines
:=
re
.
Find
StringSubmatch
(
string
(
output
)
)
lines
:=
re
.
Find
AllString
(
string
(
output
),
-
1
)
for
i
,
line
:=
range
lines
{
for
i
,
line
:=
range
lines
{
lines
[
i
]
=
line
[
:
strings
.
Index
(
line
,
" "
)]
lines
[
i
]
=
line
[
:
strings
.
Index
(
line
,
" "
)]
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment