Fixed GetGroupNodes method: wrong regexp function was used.

Fixed GetGroupNodes method: wrong regexp function was used. Should fix flakiness of "should add node to the particular mig" e2e test.
This commit is contained in:
Jerzy Szczepkowski 2016-06-09 14:34:50 +02:00
parent dd345fbf89
commit f445d41497

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