mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-06 02:02:43 +00:00
Update typo.
We never updated the error to use the expectation, not hardcode it to 2.
This commit is contained in:
parent
a633853770
commit
354d919d75
2
image.go
2
image.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user