Commit 760c563c authored by Piotr Szczesniak's avatar Piotr Szczesniak Committed by GitHub

Merge pull request #27123 from jszczepkowski/hpa-e2e-fix3

Fixed GetGroupNodes method: wrong regexp function was used.
parents 4793372a f445d414
...@@ -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.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, " ")]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment