Update typo.

We never updated the error to use the expectation, not hardcode it to 2.
This commit is contained in:
Paddy 2017-03-13 22:04:08 -07:00
parent 4c41729f98
commit 72bfc435ad
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func resolveImageFamilyExists(c *Config, project, name string) (bool, error) {
func sanityTestRegexMatches(expected int, got []string, regexType, name string) error {
if len(got)-1 != expected { // subtract one, index zero is the entire matched expression
return fmt.Errorf("Expected %d %s regex matches, got %d for %s", 2, regexType, len(got)-1, name)
return fmt.Errorf("Expected %d %s regex matches, got %d for %s", expected, regexType, len(got)-1, name)
}
return nil
}