Remove over-validation by google_cloudfunctions_function on project ids (#2780)

<!-- This change is generated by MagicModules. -->
/cc @rileykarson
This commit is contained in:
The Magician 2019-01-02 10:48:52 -08:00 committed by Riley Karson
parent 00f87a3da2
commit 3c5529cfd6

View File

@ -52,11 +52,7 @@ func (s *cloudFunctionId) terraformId() string {
}
func parseCloudFunctionId(id string, config *Config) (*cloudFunctionId, error) {
parts := strings.Split(id, "/")
cloudFuncIdRegex := regexp.MustCompile("^([a-z0-9-]+)/([a-z0-9-])+/([a-zA-Z0-9_-]{1,63})$")
if cloudFuncIdRegex.MatchString(id) {
if parts := strings.Split(id, "/"); len(parts) == 3 {
return &cloudFunctionId{
Project: parts[0],
Region: parts[1],