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

Fixed GetGroupNodes method: wrong regexp function was used.
This commit is contained in:
Piotr Szczesniak 2016-06-10 15:02:39 +02:00 committed by GitHub
commit 760c563c72

View File

@ -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, " ")]
} }