mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #27123 from jszczepkowski/hpa-e2e-fix3
Fixed GetGroupNodes method: wrong regexp function was used.
This commit is contained in:
commit
760c563c72
@ -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.FindStringSubmatch(string(output))
|
lines := re.FindAllString(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, " ")]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user